| Author |
Message |
|
|
Post subject: CRON
Posted: Sep 22, 2005 - 03:40 PM
|
|
New Member
Joined: Jul 29, 2005
Posts: 7
Location: Argentina
|
|
I would like run a cron (Clock server)
I create /var/spool/cron/crontabs/root
In root file I write this
1,5,10 12 1-31 1-12 0 /root/RemoveTrends
then in a shell type
cron -d/var/spool/cron -v
but no message appears , and the script RemoveTrends don`t run
Could you help me please? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: CRON
Posted: Sep 22, 2005 - 09:59 PM
|
|
Senior Member
Joined: Jul 06, 2002
Posts: 1629
|
|
What version of QNX?
Some earlier versions of QNX 6 had problems with cron.
When you start "cron", you don't really need those options unless you put your crontabs else where.
Based on your crontab file, script RemoveTrends only runs on Sunday noon at 12:01, 12:05 and 12:10. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: CRON
Posted: Feb 18, 2008 - 12:42 PM
|
|
Senior Member
Joined: Sep 27, 2004
Posts: 129
|
|
my root file is : 30 * * * * ntpdate 192.168.9.19 . but i can't see the ntpdate results. if i maually execute ntpdate 192.168.9.19, it's ok . who can help me, thanks. cron is running and crontab -l can see the entry
my qnx is 6.3.0 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: CRON
Posted: Feb 18, 2008 - 12:57 PM
|
|
QNX Master
Joined: Sep 01, 2002
Posts: 2667
|
|
| try putting parenthesis (ntpdate 192.168.9.19) |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: CRON
Posted: Feb 18, 2008 - 01:19 PM
|
|
Senior Member
Joined: Sep 27, 2004
Posts: 129
|
|
| I try it , it still doesn't work. -_- |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: CRON
Posted: Feb 19, 2008 - 09:49 AM
|
|
Senior Member
Joined: Sep 27, 2004
Posts: 129
|
|
| solved it . use /usr/sbin/ntpdate -_- |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: CRON
Posted: Mar 06, 2008 - 08:41 AM
|
|
New Member
Joined: Mar 03, 2008
Posts: 2
|
|
I noticed this as well cron doesn't seem to use the profile.
I think it may use the env vars. from /etc/system/sysinit but have not tested (e.g. a fix would be to put /usr/sbin/ into your PATH in sysinit (i think).
This also stung me in the tail and I done the same as you to fix.
edit: P.S. necro? much |
|
|
| |
|
|
|
 |
|
|