[Nelug] cron and ssh
Martin Ward
Martin.Ward at durham.ac.uk
Mon Sep 22 15:36:01 UTC 2003
On Monday 22 Sep 2003 3:01 pm, Andrew Hatch wrote:
> Any ideas why this script will work fine on a command line, but not return
> when the script is executed via cron?
Whenever this happens, the first thing to check is your PATH:
cron does not run your .profile or .cshrc or whatever:
cron scripts are executed with a very limited default path.
Either set PATH in the script, or fully qualify the names of any called
programs (such as ssh in your example).
--
Martin
Martin.Ward at durham.ac.uk http://www.cse.dmu.ac.uk/~mward/ Erdos number: 4
G.K.Chesterton web site: http://www.cse.dmu.ac.uk/~mward/gkc/
More information about the Nelug
mailing list