Portal Home > Knowledgebase > Articles Database > i need help about cron job please


i need help about cron job please




Posted by X-x-X, 05-09-2007, 12:00 PM
Hello How can I make that command to work automatic with corn job in my server every week and send me email if finish it? Thank you

Posted by DigiCrime, 05-09-2007, 12:56 PM
field allowed values ----- -------------- minute 0-59 hour 0-23 day of month 1-31 month 1-12 day of week 0-6 (0 is Sun) Use `*' to indicate "any". Example: 10 3 * * 0 clamscan -r --move=/root/virus /home 2>&1 | mail -s "Report" someone@email.com Will run at 3:10am every sunday.

Posted by Jeremy, 05-09-2007, 06:45 PM
full/path/to/clamscan -r etc etc etc Should use full paths with crons, generally they don't work.

Posted by DigiCrime, 05-09-2007, 07:17 PM
What jeremy said, use full path forgot about that

Posted by ccnc, 05-09-2007, 07:38 PM
corn job ... 15 23 * * * ... Sorry, couldn't resist.

Posted by X-x-X, 05-10-2007, 06:13 AM
i have 3 servers one of them its not work with that command :

Posted by Jeremy, 05-10-2007, 08:02 AM
clam isnt installed? :p

Posted by SoftWareRevue, 05-10-2007, 09:01 AM
Thread title updated.

Posted by X-x-X, 05-10-2007, 09:06 AM
its install but how can i know if its install it ?

Posted by Jeremy, 05-10-2007, 09:43 AM
find / -name "*clam*"

Posted by senne, 05-10-2007, 10:45 AM
also you can put environment varables(path) in crontab

Posted by X-x-X, 05-10-2007, 06:21 PM
i thing its installing in server but its not working in that command how can i reinstall it please in SSH ?

Posted by Jeremy, 05-10-2007, 06:43 PM
If your using a control panel might want to check with them or look around in it.

Posted by X-x-X, 05-10-2007, 08:20 PM
i use cpanel

Posted by Jeremy, 05-10-2007, 08:47 PM
Well look around with in cpanel and yea. I personally dont use cpanel so i dont know.

Posted by X-x-X, 05-18-2007, 05:42 AM
can any one help how to scan that server ?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
traceroute script (Views: 687)