Wednesday, 14 May 2014

Running SSH From Within Cron

SSH does not run from within cron, because it is password authorised.

To get round this, use a script to generate the password prior to running the actual script, eg:
0 9 * * * . /; /home/milned/scripts/ If the call of the script (needed to supply the pass phrase) is omitted, it's just ssh being called inside the bash shell script.

No comments :

Post a Comment