Re: scp works on command line, fails in cron
From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 12/29/04
- Previous message: tonij67_at_hotmail.com: "Re: scp works on command line, fails in cron"
- In reply to: tonij67_at_hotmail.com: "Re: scp works on command line, fails in cron"
- Next in thread: Frank_Hamersley: "Re: scp works on command line, fails in cron"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 29 Dec 2004 17:16:20 GMT
tonij67@hotmail.com writes:
>Here is the crontab line:
>* * * * * /usr/local/bin/scp -v /tmp/2 10.46.0.102:/utils/backup
>This runs it every minute for testing purposes.
>I have tried using bash and ksh, both give the same results. I double
>checked to make sure my path to the shel is correct (i.e. /usr/bin/ksh
>and /usr/bin/bash )
>No other cronjobs fail, just this one..
Is your secret key file (id_rsa) password protected with something like
ssh-agant running so you forgot that you had to enter the password sometime
in the past?
If you are going to use scp from cron then you cannot have the secret key
files password protected.
- Previous message: tonij67_at_hotmail.com: "Re: scp works on command line, fails in cron"
- In reply to: tonij67_at_hotmail.com: "Re: scp works on command line, fails in cron"
- Next in thread: Frank_Hamersley: "Re: scp works on command line, fails in cron"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]