Originally posted by Tim Hallbauer
Hey Guys and Gals,
Our Admin is out and I am trying to trouble shoot a bigger problem so I wrote a simple script that just starts a connection. I am trying to execute it from root's cron. It executes fine when I just execute the script from the command line. I saw all the stuff about setting the environment variables, but then read that if you su - hci those should be set? Can anyone tell me what's going on here? Any help would be appreciated as I have been fighting with this for some time now.
Cron entry
35 12 * * * 1,2,3,4,5 su - hci "-c /cloverleaf/qdx5.4.1/integrator/scripts/start_cer_law_usage"
Error message in root's mail
Subject: Cron <root@smcim1> 1,2,3,4,5 su - hci "-c /cloverleaf/qdx5.4.1/integrator/scripts/start_cer_law_usage"
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
/bin/sh: line 1: 1,2,3,4,5: command not found
Thanks,
Tim