Cronjob issue

Posted by CymraegWalesHosting, 11-16-2012, 11:25 PM
Hi all, Hopefully this is a simple fix. I have created a very simple cron sciption that has the following command: However when i execute this via a cron.. I get the simple message: /root/wireshark.sh: line 1: tethereal: command not found However when i run this when i'm logged in via SSH (root) it runs no problem. Any ideas?

Posted by zoid, 11-17-2012, 04:06 AM
Path issue I guess, try full paths.

Posted by syleishere, 11-17-2012, 05:36 AM
Add this to top of your crontab: PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root:. and make sure tethereal is maybe not spelled wrong, perhaps its "ethereal"

Hjalp dette svar dig?

 Print denne artikel

Læs også

CACTI with cPanel

Posted by hosteur, 05-07-2007, 07:29 AMMy other box gear by DedicatedPlace and they guys still...

Command line to show mysql processes?

Posted by mrzippy, 10-30-2012, 11:43 AMHello, What is the command to show active mysql...

preventing hotlinking of images

Posted by AtoZ, 09-15-2007, 01:38 AMThe images I am trying to block are on page generated by a...

Automated file transfer

Posted by daniel_law, 01-16-2008, 02:00 PMI want to automate the file transfer from a remote site...

Limit concurrent users in MySQL

Posted by ThaiZone, 01-15-2008, 02:49 AMI try to search and not found the solutions to limit...