Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Running 'cron' on more than one node.
Ref. No. QNX.000009375
Category(ies) Utilities
Issue We're trying to run cron on nodes 1 & 3, but are only able to run it on one node or the other, but not both.  Why?
Solution First, register 'cron' locally using the -L option (the default is a global).  Once this is done, create a seperate  /usr/spool/cron.$NODE file for each $NODE 'cron' will be run on. run cron on.

From the "QNX OS Utilities Reference -- A to M" manual for cron:

-L  Local. Automatically adds the suffix .node_ID to the cron directory name (/usr/spool/cron or the filename given to the -d option). e.g. If cron is being run on node 95 and -d is not specified, the cron directory name would be /usr/spool/cron.95. This allows cron to be run on multiple machines which share the same filesystem.

See Also: crontab in the "QNX OS Utilities Reference -- A to M" manual.