Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2010 21:52:43 +0300
From:      =?iso-8859-9?Q?Yavuz_Ma=FElak?= <yavuz.maslak@netiletisim.net>
To:        <freebsd-questions@freebsd.org>
Subject:   I can't execute a script in crontab
Message-ID:  <321BFC21315248CCA4341AA862E19DED@desktop2002>

next in thread | raw e-mail | index | archive | help
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 
root@192.168.10.9:/var/cpfile

Thanks 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?321BFC21315248CCA4341AA862E19DED>