This is a discussion on crontab within the Getting started tutorials forums, part of the Linux Getting Started category; i m trying to run on crontab 10 * * * * /usr/sbin/ntpdate -u xx.xx.xx.xx >> /var/synctime.log but it doesnt ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
i m trying to run on crontab
10 * * * * /usr/sbin/ntpdate -u xx.xx.xx.xx >> /var/synctime.log but it doesnt work... check system > services > crontab is enabled by manual command /usr/sbin/ntpdate -u xx.xx.xx.xx it's working need help ![]() |
| Sponsored Links | ||
|
|
|
|||
|
./xntpd status
Checking for network time protocol daemon (NTPD): running but crontab is not working.. i ran ntpdate command by root i m running suse 9 enterprise thanks |
|
|||
|
run the command :
/etc/init.d/crond status if it shows "running" then cron is running, then it shell ntpdate shall run. But if it is not running you can start it with /etc/init.d/crond start to make it permanent so that it starts when the system is switched ON, you can run insserv -a cron( or crond just not sure which one) or chkconfig crond on ( or crond just not sure which one) |
|
|||
|
everytime i edited the crontab i have to restart cron...n now it's working
another problem is if i run the command like "/usr/bin/top -n 1 >> /var/x1.log" manual working but in the crontab "0,10,20,30,40,50 * * * * /usr/bin/top -n 1 >> /var/x1.log" it's not working the log file from /var/log/messages " Jul 2 13:30:00 soccer /USR/SBIN/CRON[4694]: (root) CMD (/usr/bin/top -n 1 >> /var/x1.log)" but i cant find the log in "/var/x1.log" could u plz help me? |
|
|||
|
Hi
I'm trying to setup a cron job to automatically run . But the cron is not working properly. When I run the command, the output file is just blank. Here is a sample of my Crontab, any help will be much appreciated. ##################### # /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 |
|
|||
|
Hello dear,
i m facing problm with "crontab" when i m attaching the file. it is woking properly without using crontab. so please ,send the proper solution for attaching the file with crontab. plz send the whole information regading to setting the crontab if it is. what r the reqirment for attaching the file with crontab. is there any permisssion set........... is ..any specific characterset....... or any spesific setting plz give me the solution ............... Rajesh Tomar System Engineer |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Crontab | lacloai | Linux software | 2 | 06-01-2007 04:44 AM |
| start and stop service in crontab. | gthian | Shell scripting | 7 | 05-31-2007 12:04 PM |
| about crontab | darknet | Shell scripting | 2 | 01-04-2007 07:01 PM |
| /etc/crontab file permissions or ownership can cause problem | chiku | Linux software | 2 | 12-20-2006 02:57 AM |
| list every user's crontab script | marinm | Shell scripting | 5 | 07-20-2005 12:24 AM |