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"

آیا این پاسخ به شما کمک کرد؟

 پرینت این مقاله

در همین زمینه

Warning: shell_exec() has been disabled for security reasons

Posted by ashish1987, 09-15-2007, 12:39 AMHey I installed status2k on my server and i am...

EMC / SAN HD Ready

Posted by ti_nhatrang, 04-15-2007, 03:33 AMHi guys, I've purchased AX150/EMC SAN from DELL......

Include and run a script within a program

Posted by Sammyboy99, 02-18-2011, 06:53 PMSo I've made a program that executes a script the only...

Suggest me a good book to lean server administration

Posted by servlet, 04-21-2009, 02:48 AMCan any one suggest me a good book that covers web server...

Scheduling Software

Posted by raulgonzalez, 01-15-2008, 07:30 PMHello, Does anyone know of an opensource software...