P is for Practical | |
PerlMonks |
Re: Running a Net::SFTP::Foreign script from cronby grep (Monsignor) |
on Nov 07, 2006 at 21:15 UTC ( [id://582734]=note: print w/replies, xml ) | Need Help?? |
Your cron does not have access to your shell PATH and Net::SFTP::Foreign uses the ssh command line utility (as opposed to Net::SFTP which is pure-perl). ssh is not in cron's path (but it is in yours), so Net::SFTP::Foreign can't find it The remedy is either to switch to Net::SFTP or to set ssh_cmd => $sshcmd to the full path of your ssh.
In Section
Seekers of Perl Wisdom
|
|