Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi,
I'm struggling with a crontab run script on dns-323, expanded with funplug
when I login with ssh to the device and run the script, it works.
I then added the script to crontab, only to find the script failed with numerous errors.
the errors were due to the fact that the crontab launched version apparently used the older non-funplug commands.
examples:
login: value of PATH='/ffp/bin:/usr/bin:/bin'
crontab:value of path PATH='/usr/bin:/bin:/usr/sbin:/sbin'
login: cp --help BusyBox v1.12.1 (2008-09-29 20:38:04 CEST) multi-call binary
crontab: cp --help BusyBox v1.00-pre1 (2007.12.10-08:03+0000) multi-call binary
What must I do so crontab launched scripts use the same environment as regular logins?
For now, I'll try using PATH in the scripts to force the use of funplug updated commands.
best regards
glenn
Offline
glenndm wrote:
What must I do so crontab launched scripts use the same environment as regular logins?
You can include the full path to the to the ffp commands you want to use in the scripts
/ffp/bin/cp --help
Should return BusyBox v1.12.1 at the command line and in crontab.
Modifying the PATH variable will work too.
Last edited by mig (2009-01-08 16:56:13)
Offline
thanks for the reply
adding the path did take care of the errors.
If I find the time, I'll try to understand why there is a difference between shell and crontab sessions.
best regards
glenn
Offline