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"

Помог ли вам данный ответ?

 Распечатать статью

Также читают

Invoking classes via Nested includes (php)

Posted by lifewater, 03-15-2007, 04:00 PMHello, I apologize if this is a repeated question,...

picture editing for members

Posted by rumrunner439, 09-22-2008, 02:10 PMok i was wanting to add a photo editor like inkscape...

Custom nameservers question

Posted by emmzee, 09-14-2007, 08:47 PMHi everyone, (x.com = replacement for my actual domain) I...

IE 6.0 and style.display

Posted by jon31, 03-23-2007, 05:14 PMHey folks, I'm working on some cool little AJAX scripts,...

subdomain and directory question

Posted by azn_romeo_4u, 03-27-2008, 01:02 AMHow do those websites do a website like this....