LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Script doesn't run in crontab (https://www.linuxquestions.org/questions/linux-general-1/script-doesnt-run-in-crontab-255429/)

dani81 11-16-2004 02:17 AM

Script doesn't run in crontab
 
Quote:

I made a script wireless.sh and when i start it from bash is works. But when cron wants to start it, it doesn't work !

telnet xxx.xxx.xxx.xxx

su

/root/wireless.sh <- works

crontab -e

17 * * * * /root/wireless.sh

doesn't work!!!
I discovered that 1 line in wireless.sh doesn't execute and when i put it directly in crontab is also doesn't work.

/root/mgen3.2a1/mgen -i xl0 /root/mgen3.2a1/gscript & (@bash it works)

1 * * * * /root/mgen3.2a1/mgen -i xl0 /root/mgen3.2a1/gscript & (doesn't work)

I have another Freebsd pc and on this pc it is not a problem :confused:

dani81 11-16-2004 03:42 AM

Ok i got It already myself:

In gscript i haven a line:

00000 1 ON 224.225.0.8:5000 PERIODIC 20.0 9216

In some strange way, crontab can't handle the byte size of 9216. If i bring it back to 8192, it works!! I don't know why, but I am glad it works again :)


All times are GMT -5. The time now is 03:55 AM.