APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

SCO Unix, Xenix and ODT General FAQ

Why does my SCO Unix cron job fail while "at" works?

If "at" works and cron does not, your problem is almost certainly a matter of setting proper environment variables.


Probably because your program needs environment variables that cron does not have set. You need to wrap your job in a script that sets and exports whatever variables it needs- likely TERM and PATH at least.

Using "at" works because at grabs all your current environment settings and uses them when it runs the job. See Cron is not working for a more complete discussion.

For more details of cron itself, see Cron, Batch and At and UNIX Basics: JOB SCHEDULING.

Some systems are replacing cron (and init and everything else that is part of historical Unix). You may also want to read Ding, dong, the Cron is dead for Mac OS X.


Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> (SCO Unix) Why does my cron job fail while 'at' works?




Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





While modern technology has given people powerful new communication tools, it apparently can do nothing to alter the fact that many people have nothing useful to say. (Leo Gomes)




FAQ



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode


SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)
www.SCOsales.com