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"

Ha estat útil la resposta?

 Imprimeix aquest Article

Llegir també

Soap

Posted by parag, 03-12-2010, 09:58 AMHello, I installed SOAP - which tells me it has installed...

Cloudflare - too good to be true?

Posted by UberTricep, 11-02-2012, 08:24 AMSo I've been testing out cloud flare (for free) and it...

Domain names diferent servers.

Posted by shakybaky, 06-26-2008, 02:34 PMhello i have two nix vps's One of the vps is setup and...

Exchange Replication?

Posted by regmac01, 09-16-2007, 12:19 AMWhat would be the best way to replicate two exchange...

Open Source Video Blogging

Posted by CoolRock, 01-18-2008, 07:50 AMHi, I am currently looking for an open source video...