I can't execute a script in crontab
Vinny
vinny-mail-01+f.questions20100518 at palaceofretention.ca
Wed May 19 00:16:58 UTC 2010
On 05/18/2010 14:52, Yavuz Maþlak wrote:
> I use freebsd7.2
>
> I wish to send a file using crontab as periodic. I have a script to send
> the file.
> When I am root, I can execute my script, but I can't execute the script
> using crontab.
> How can I run it ?
>
> cat myscript
> /usr/bin/scp -i /root/.ssh/id_rsa.pub /root/cpfile
When using scp's -i (identity) switch, you should specify
the private key file, not the public key file. Perhaps
this is the problem you are having.
More information about the freebsd-questions
mailing list