Len Conrad wrote:

>maybe somebody has the redirection handy.
>  
>

/path/to/command  >/dev/null 2>&1

The '2>&1' part causes STDERR to be redirected to STDOUT (every process 
normally has two output channels which may or may not go to the same 
place). The
'/dev/null' part makes it go away.

At least, the above works on OpenBSD. YMMV. I have noticed that I can't 
use that syntax directly on the command line (I think the '&' gets 
interpreted as a request to background the job), but in crontab does the 
trick.


Reply via email to