redirecting output in cron job not working

Patrick O'Callaghan pocallaghan at gmail.com
Tue May 6 15:24:01 UTC 2008


On Tue, 2008-05-06 at 16:01 +0000, g wrote:
> g wrote:
> > ok. better yet, it came back to me, exit status is '#?'.
> 
> and just in case, should you be thinking about asking, ;o)
> 
>  if [ ! "$?" = "0" ]

It's often easier to write:

        some_command || error_path
        
poc




More information about the fedora-list mailing list