[TDK] Wrapped Starkit not working with cron
by Allan Silverstein other posts by this author
Sep 22 2006 12:20PM messages near this date
view in the new Beta List Site
[TDK] ANNOUNCE: Tcl Dev Kit 4.0 Beta 1 now available
|
Re: [TDK] Wrapped Starkit not working with cron
Hi,
I have a starkit that I've created with TclApp and everything seems to work fine accept when
I run the script from cron. It appears the system can't find a file (my basekit). Here is
the mail message that the system mails to me when the script is run from cron:
Message 19:
From asilver@[...].localdomain Fri Sep 22 02:30:02 2006
Date: Fri, 22 Sep 2006 02:30:01 -0400
From: root@[...].localdomain (Cron Daemon)
To: asilver@[...].localdomain
Subject: Cron <asilver@apollo> /home/asilver/net-scripts/acme/acme_config_bkups.sh
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/asilver>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=asilver>
X-Cron-Env: <USER=asilver>
/usr/local/net-sense/bin/copy_to_tftp: line 3: exec: net-sense_base_lintcl: not found
Here is the first few lines of the starkit "copy_to_tftp".
#!/bin/sh
# exec net-sense_base_lintcl "$0" ${1+"$@"}
##
package require starkit
starkit::header mk4 -readonly
It appears my PATH variable in Cron is different than my PATH variable when I'm in the shell
. The base-kit "net-sense_base_lintcl" is in my path when in the Bash Shell but not in cron
. If I'm not mistaken, I believe I can set the Cron Path in Linux but I'm not sure if I can
do that in Solaris. Is there another way to resolve this issue?
Thanks
_______________________________________________
TDK mailing list
TDK@[...].com
http://listserv.ActiveState.com/mailman/listinfo/tdk
Thread:
Allan Silverstein
Jeff Hobbs
asilver
asilver
|