I want to modify the file queuedefs by a script
The string is by example:
"a.8j30n45w"
a: name of the queue
j: max number of jobs (8)
n: nice of jobs (30)
w: max wait for jobs (45)
Sorry for the typo.
For changing the max number of jobs of the at queue:
qd=/usr/lib/cron/queuedefs
cp $qd $qd.$$
sed '/^a/s![0-9][0-9]*j!10j!' $qd.$$ >$qd
rm $qd.$$
For changing the nice value of cron jobs:
sed 's/^c/s![0-9][0-9]*n!30n!'
Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.