cronjob is not executing.
- From: ArifulHossain tuhin <etothepowerpi@xxxxxxxxx>
- Date: Wed, 1 Feb 2012 11:46:53 -0800 (PST)
I have the following shell script
-->cat capture.sh
TIME=$(date +"%H-%M-%d-%m-%y")
IP="203.208.198.29"
PREFIX=$TIME$IP
tshark -f "udp" -i eth0 -w /root/captures/$PREFIX.cap&
pid=$!
sleep 2m
kill $pid
it runs fine when i execute it from shell.
but when i add it to the cron tab nothing happens.
my crontab entry :
1 */2 * 2 3,4,5 sh /root/capture.sh
-->tail /var/log/cron
shows that the command has executed .
but nothing happens. i have set executable permission for "all" for capture.sh and write permission for "all" for /root/captures directory.
Thanks in advance
.
- Follow-Ups:
- Re: cronjob is not executing.
- From: Bit Twister
- Re: cronjob is not executing.
- Prev by Date: Re: How To Insert an Escaped Apostrophe With Sed?
- Next by Date: Re: cronjob is not executing.
- Previous by thread: How To Insert an Escaped Apostrophe With Sed?
- Next by thread: Re: cronjob is not executing.
- Index(es):
Relevant Pages
|