[wplug] perl / cron problem
Mike S
lists at immuneit.com
Fri Oct 21 16:08:18 EDT 2005
> On Fri, 21 Oct 2005, Mike S wrote:
>> I have a script, erBackup.pl, which basically tar's and scp's some files
>> to a remote host. Note: I use an encrypted id_rsa file, and have
>> ssh-agent running.
>
> Is the script and/or cron setting the needed environment variables to make
> ssh-agent work?
It probably wasn't. I solved that by wrapping it all in a bash script
that goes:
#!/usr/bin/bash
eval 'ssh-agent -c'
perl /home/scripts/erBackup.pl
I think that should work, but as far as I can tell, its not even doing the
tarring. Totally stumped, and there's no errors, nothing that looks
wrong.
Mike
More information about the wplug
mailing list