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"

Hasznosnak találta ezt a választ?

 Kinyomtatja ezt a cikket

Olvassa el is

Question for Nameserver

Posted by tinhnho, 07-16-2007, 11:57 PMHi everyone, I installed DA, and setup my ip...

javascript dies in php

Posted by ti_nhatrang, 01-17-2008, 06:49 AMHi guys, I can't seem to put this in a echo...

P2V migration

Posted by webservermatrix, 04-23-2009, 06:41 AMHi, We have 2 servers SQL, Web & SM 4.x each with...

SPAM died me

Posted by Tiva, 03-19-2007, 05:43 AMhi, my support and sales mailbox almost get full of spam and...

weird disk usage shown in server

Posted by prashant1979, 09-18-2008, 08:28 AMHello, I am seeing a weird disk usage in one of my...