OpenQNX :: The QNX Community Portal

May 13, 2008 - 02:38 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 73 unlogged users and 2 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
yappec
Post subject: CRON  PostPosted: 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?
 
 View user's profile Send private message  
Reply with quote Back to top
noc
Post subject: RE: CRON  PostPosted: 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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
dxwang
Post subject: RE: CRON  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: CRON  PostPosted: Feb 18, 2008 - 12:57 PM
QNX Master


Joined: Sep 01, 2002
Posts: 2667

try putting parenthesis (ntpdate 192.168.9.19)
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
dxwang
Post subject: RE: CRON  PostPosted: Feb 18, 2008 - 01:19 PM
Senior Member


Joined: Sep 27, 2004
Posts: 129

I try it , it still doesn't work. -_-
 
 View user's profile Send private message  
Reply with quote Back to top
dxwang
Post subject: RE: CRON  PostPosted: Feb 19, 2008 - 09:49 AM
Senior Member


Joined: Sep 27, 2004
Posts: 129

solved it . use /usr/sbin/ntpdate -_-
 
 View user's profile Send private message  
Reply with quote Back to top
davidk2
Post subject: RE: CRON  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.