Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-16-2006, 12:37 AM   #1
LQ Newbie
Registered: Dec 2005
Distribution: Mandriva, Fedora Core
Posts: 7

Rep: Reputation: 0
Crontab Problem

Hey all

I'm having a bit of a problem with my crontab on a CORE5 server. I'm running a custom script that I wrote to execute a nessus commandline scan every day.

*/3 * * * * /nessus_auto

The "*/3" is just to test.. I set it to run every 3 minutes. The scan takes about 90sec... So the cron isn't overlapping..

In the script it looks like this:
export DISPLAY=":0.0"
/sbin/NessusClient -q -V -T nbe -x 1241 admin password /LIST /server.nbe


I tried the cron like this:
*/3 * * * * root /nessus_auto
It will not run via Cron, but when I run the script in a normal SSH session (the only way I can connect to the server) it works just fine.

Any help please..

Last edited by dieduster; 11-16-2006 at 12:40 AM.
Old 11-16-2006, 05:49 AM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
It's probably an X authentication problem. Change the command to this:
*/3 * * * * root /nessus_auto > /tmp/my.log 2>&1
...wait for it to run, and then see if there are error messages in this /tmp/my.log file. Post the contents here...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using crontab simenzo Linux - Newbie 4 06-07-2006 03:21 PM
crontab problem pdrobe Red Hat 1 02-05-2005 03:19 PM
crontab problem provo1234 Linux - General 3 01-21-2005 11:20 AM
crontab problem TomTheNewbie Slackware 1 07-09-2003 07:12 AM
crontab problem zuessh Slackware 0 04-30-2003 09:35 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration