Linux / UNIX Tech Support Forum
This is a discussion on Cron job on Fedora 7 within the Linux software forums, part of the Linux Getting Started category; Hi everyone Hi I'm trying to setup a cron job to automatically run a script and save the log file. ...
Register free or login to your account to remove all advertisements.
|
|||||||
| Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Hi everyone
Hi I'm trying to setup a cron job to automatically run a script and save the log file. But the cron is not working properly. When I run the command, the output log file is just blank. Here is a sample of my Crontab, any help will be much appreciated. The distro is Linux Fedora 7 64 bit ##################### # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 00 3 * * * root /emu/script/./configupdate.sh >>/emu/log/configupdate.log >/dev/null 2>&1 00 * * * * root /emu/script/./keys.sh >>/emu/logfiles/keys.log >/dev/null 2>&1 Thanks angenet |
|
|||
|
Hi,
please check the path of your script which one you are trying to run 00 3 * * * root /emu/script/./configupdate.sh >>/emu/log/configupdate.log >/dev/null 2>&1 00 * * * * root /emu/script/./keys.sh >>/emu/logfiles/keys.log >/dev/null 2>&1 the above should be replace with the follow 00 3 * * * root /emu/script/configupdate.sh >>/emu/log/configupdate.log >/dev/null 2>&1 00 * * * * root /emu/script/keys.sh >>/emu/logfiles/keys.log >/dev/null 2>&1 If the above also not working fine,please update your mail result sent by mailer daemon.To do that type follow command, thanks, aaru |
![]() |
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tomcat shell script cron job to restart server | kasimani | Shell scripting | 4 | 3rd May 2008 07:46 PM |
| Cron to send analog | neo424 | Shell scripting | 0 | 13th July 2007 01:39 PM |
| How do I configure Linux UNIX cron tasks? | sweta | Getting started tutorials | 1 | 12th July 2007 11:34 PM |
| UNIX cron job setup how to | gbdood | Linux software | 1 | 27th August 2006 10:07 AM |
| Cron problem | vin6384 | Linux software | 1 | 8th March 2006 09:48 PM |