Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14611 reviews 1734 hosting providers

Questions & Answers

Cronjob problem

Nov 23, 2012 by darkshark
I have  recently created a a simple cron job with the bellow code
tethereal -i eth0 -w /home/Mypage-captures/capture.pcap -a duration:78000 -b filesize:51100

When I try executing the code with a cron I get the message Command not found, but if I try to run it using SSH it runs normally.
Any idea why is this happening with the cron job? Any ideas will be appreciated.
 Many thanks

2 Answers

0 votes
Nov 23, 2012 by expert
I think your problem is caused because of the paths.  Try using full paths.
0 votes
Nov 23, 2012 by FixHost
Add this the below code to your crontab: