You could do it like this:
*/5 * * * * wget -O /dev/null -o /dev/null example.com
Here -O
sends the downloaded file to /dev/null
and -o
logs to /dev/null
instead of stderr. That way redirection is not needed at all.
Related Contents:
- How to get the contents of a webpage in a shell variable?
- How can I show the wget progress bar only? [closed]
- How to hide wget output in Linux? [closed]
- How do I pipe a downloaded file to standard output in bash?
- wget: don’t follow redirects
- Pipe to/from the clipboard in a Bash script
- Recursively counting files in a Linux directory
- Linux how to copy but not overwrite? [closed]
- How to determine SSL cert expiration date from a PEM encoded certificate?
- sed command with -i option failing on Mac, but works on Linux
- How to create a CPU spike with a bash command
- How do I write a bash script to restart a process if it dies?
- How do you normalize a file path in Bash?
- What is the Linux equivalent to DOS pause?
- How to kill a child process after a given timeout in Bash?
- How to clear all history in linux/ubuntu terminal or bash permanently? [closed]
- Run cron job only if it isn’t already running
- How can I find out a file’s MIME type (Content-Type)?
- unix – head AND tail of file
- How to reverse-i-search back and forth? [duplicate]
- Check free disk space for current partition in bash
- BASH copy all files except one
- How to concatenate two strings to build a complete path
- What does ‘cd -‘ stand for?
- sed insert line with spaces to a specific line
- Checking for environment variables
- Move whole line up/down shortcut in nano (analogue to intelliJ or Visual Studio)
- Merge 2 directory trees in Linux without copying?
- How do you escape characters in heredoc?
- sed replace all tabs and spaces with a single space
- Reasons for missing IP info in `last` output on pts logins?
- Redirect output of time command in unix into a variable in bash?
- Randomly shuffling lines in Linux / Bash
- how to detect invalid utf8 unicode/binary in a text file
- Exit code of variable assignment to command substitution in Bash
- How to remove all non-numeric characters from a string in Bash?
- Expression after last specific character
- Fastest way to ping a network range and return responsive hosts?
- Get ceiling integer from number in linux (BASH)
- How to pass parameters to a Bash script?
- how to wait for first command to finish?
- How do I add a line of text to the middle of a file using bash?
- Can I use awk to convert all the lower-case letters into upper-case?
- Colour highlighting output based on regex in shell
- Splitting a file in linux based on content [duplicate]
- Convert all file extensions to lower-case
- check if file exists on remote host with ssh
- Moving a directory atomically
- Comparing two unsorted lists in linux, listing the unique in the second file
- Identifying received signal name in Bash