Re: ssh&scp batch
From: all mail refused (elvis_at_notatla.org.uk)
Date: 02/21/04
- Next message: Nico Kadel-Garcia: "Re: Does sftp or scp gaurentee delivery?"
- Previous message: chris: "ssh&scp batch"
- In reply to: chris: "ssh&scp batch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 21 Feb 2004 16:37:03 GMT
In article <c17uad$6st$1@news-reader4.wanadoo.fr>, chris wrote:
>I wrote a script with this line in :
>scp -B myuser@myhost:/source/dir/myfile.tar.gz /target/dir
>(ssh_agent launched via keychain)
>
>if i execute my script via the console, it works fine
>
>but if i launch it via cron => i have an error message !!???
>
>an idea which will help me to solve this problem ???
0. Is this an error message that you think we already know
or that you don't like to quote ?
1. Do you mean ssh-agent when you have ssh_agent ?
2. Stuff that fails when called by cron but works from elsewhere
has normally failed for lack of some environment setting.
Compare "env" output from the two places. Getting the cron
job to source your .profile is a common solution.
3. In this case I suspect the stuff derived from ssh-agent is missing:
SSH_AUTH_SOCK=/tmp/ssh-vOdx6785/agent.6785; export SSH_AUTH_SOCK;
SSH_AGENT_PID=6786; export SSH_AGENT_PID;
-- Elvis Notargiacomo master AT barefaced DOT cheek
- Next message: Nico Kadel-Garcia: "Re: Does sftp or scp gaurentee delivery?"
- Previous message: chris: "ssh&scp batch"
- In reply to: chris: "ssh&scp batch"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|