process >>file 2>&1
But it is preferable that you first try with separately mentioned files - it makes a much easier to maintain code AND it is not position dependent:
process >file 2>&1will have stderr and stdout go to
process 2>&1 >filewill have stdout go to
This is one of the most common errors in crontabs and responsible for an awful lot of unnecessary (and unwanted) mails to root (the cronjobs replacement for a terminal).
No comments:
Post a Comment