Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 46782

Re: Running Cron in Blue Host

$
0
0
by Guillermo Madero S..  

Hi Rick,

LOL, yes, we sometimes get code from who knows where, and if it works we just forget about it and go on! smile

Well, your command script is Ok.

The "-O -" part says, send the results, or output, to stdout (standard output: the console or screen), instead of to a file (e.g. -O somefilename).

The "> /dev/null" part at the end catches whatever is being sent to stdout and then redirects it to the null device (a black hole smile)

Finally, the "2>&1" part redirects stderr (standard error, or the error stream) to stdout, but as stdout is already redirected to the null dev, then the error stream gets discarded too.

Character ">" means start with a new file (output) and ">>" means append to the existing file.

The numbers, 0, 1 and 2 are file descriptors that mean:

0 = stdin
1 = stdout
2 = stderr


Viewing all articles
Browse latest Browse all 46782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>