I am running script with cron each 1 minute. I have problem with this script after start or reboot. In script i have some as:
#!/bin/sh
IP="127.0.0.1"
PORT="16000"
nc $IP $PORT > /tmp/test.log
if [ -s /tmp/test.log ]; then
...
else
...
fi
exit 0
Script does not work well after reboot/start of system - /tmp/test.log is still empty (it is test for running cc*am). After cron stop/start manualy from telnet it begins work well. Are scripts in crontab limited, or what i have wrong ?
crontab and script after start/reboot on powerpc/debian machine
Started by ims, 18 Dec 2011 14:56
5 replies to this topic
Re: crontab and script after start/reboot on powerpc/debian machine #2
Re: crontab and script after start/reboot on powerpc/debian machine #3
Re: crontab and script after start/reboot on powerpc/debian machine #4
Re: crontab and script after start/reboot on powerpc/debian machine #5
Re: crontab and script after start/reboot on powerpc/debian machine #6
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users