9 Jun 2009
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");comments powered by Disqus