6

My script stops working when using crontab

view full story
linux-howto

http://www.unix.com – I have made a shell script(/bin/sh) that starts a perl script (that I haven't made my self) that's starts a ssh session. The ssh session uses a private/public key to login so no password is needed. The Perl script works perfect. But when I put it in a cronjob (crontab) the ssh connection asks for password. This makes the scripts fail. Seems like ssh keys are not working while running in cron. Is there a process that I shall start? This is the reason why I made the shell script to load most of my env variables( I know that cronjob starts with a slim shell) from my normal shell. I thought i (HowTos)