Posts Tagged by Cron
|09-May-2011||Posted by Sonia Hamilton under Cron, Solaris|
I stumbled across a
limitation feature behaviour of Solaris over the weekend – by default it only allows you to run a maximum of 100 cron jobs at once. I suppose this to protect against “shooting oneself in the head”, but aaaarghhh… Reminds me why I love Monday mornings.
Anyway, the file to edit is /etc/cron.d/queuedefs, see man queuedefs.
Thanks to Solaris Tips for pointing me in the right direction.
|09-Jun-2009||Posted by Sonia Hamilton under Cron, Perl, Ssh|
I use keychain for securely caching my ssh key credentials when running scripts from cron.
Here’s how to use keychain with Perl scripts:
Create a wrapper script: source ~/.keychain/hostname-sh run_perl_program.pl
To run a one-off command do:
system("source ~/.keychain/hostname-sh; cmd");