nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Cron job on Fedora 7

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. ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 10-03-2007, 04:18 PM
Junior Member
User
 
Join Date: Oct 2007
My distro: Fedora
Posts: 2
Rep Power: 0
angenet is on a distinguished road
Wink Cron job on Fedora 7

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
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-04-2007, 06:11 PM
Junior Member
User
 
Join Date: Sep 2007
Location: Mumbai
My distro: Fedora,CentOS,Redhat,FreeBSD
Posts: 15
Rep Power: 0
aaru is on a distinguished road
Send a message via Yahoo to aaru Send a message via Skype™ to aaru
Cool

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,

# mail

thanks,

aaru
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Tomcat shell script cron job to restart server kasimani Shell scripting 4 05-03-2008 08:46 PM
Cron to send analog neo424 Shell scripting 0 07-13-2007 02:39 PM
How do I configure Linux UNIX cron tasks? sweta Getting started tutorials 1 07-13-2007 12:34 AM
UNIX cron job setup how to gbdood Linux software 1 08-27-2006 11:07 AM
Cron problem vin6384 Linux software 1 03-08-2006 10:48 PM


All times are GMT +5.5. The time now is 07:53 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36