in reply to Re: perl script in nohup running from crontab
in thread perl script in nohup running from crontab
cron is executing the script, but now i have a different problem.
I have all the scripts under /root/nfs_share/SCRIPTS folder as you can see i was trying to run a script ncp_run.tcl (which is again under SCRIPTS dir). In this ncp_run.tcl file i am socurcing some other files
so while corn is executing the script it is throwing errorsource resource.conf source init.tcl
so is it something like corn is running this in some other environment. here is some of the datails:couldn't read file "resource.conf": no such file or directory while executing "source "resource.conf"" (file "/root/nfs_share/SCRIPTS/ncp_run.tcl" line 1)
[root@perflnx14 SCRIPTS]# which crontab /usr/bin/crontab [root@perflnx14 SCRIPTS]# echo $SHELL /bin/bash [root@perflnx14 SCRIPTS]# echo $PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/s +bin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/nfs_share/SCRIPTS:/root/n +fs_share/SCRIPTS/ [root@perflnx14 SCRIPTS]# echo $HOME /root
but if i run this script manually expect -f ncp_run.tcl</it will work finep> once again thanks for helping me out in this ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perl script in nohup running from crontab
by hbm (Hermit) on Sep 23, 2011 at 12:51 UTC | |
|
Re^3: perl script in nohup running from crontab
by graff (Chancellor) on Sep 23, 2011 at 23:24 UTC |