Date: Tue, 18 May 2010 19:59:06 -0400 From: Vinny <vinny-mail-01+f.questions20100518@palaceofretention.ca> To: freebsd-questions@freebsd.org Subject: Re: I can't execute a script in crontab Message-ID: <4BF329CA.4050308@palaceofretention.ca> In-Reply-To: <321BFC21315248CCA4341AA862E19DED@desktop2002> References: <321BFC21315248CCA4341AA862E19DED@desktop2002>
next in thread | previous in thread | raw e-mail | index | archive | help
On 05/18/2010 14:52, Yavuz Ma=C3=BElak wrote: > I use freebsd7.2 > > I wish to send a file using crontab as periodic. I have a script to sen= d > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BF329CA.4050308>