1831651 Members
2074 Online
110029 Solutions
New Discussion

Cron - nice

 
LudekC
Advisor

Cron - nice

Hello,
HP-UX B.11.11
how run cron task with higher priority?
I set in /usr/lib/cron/queuedefs :
c50j-5n60w
and task run with nice 25, not with nice 15.
Thank You Ludek
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Cron - nice

>how run cron task with higher priority?

By higher, you mean with a negative nice value?

You can't unless that user has root and you just use nice -n -number ... in the crontab entry itself.

queuedefs(4) doesn't appear to allow you to get a higher priority, the whole purpose of cron is to do these in the background with lower priority.