I can't execute a script in crontab
Rodrigo Gonzalez
rjgonzale at estrads.com.ar
Tue May 18 19:43:28 UTC 2010
The script must start with
#!/bin/sh
and be executable
On Tue, 18 May 2010 21:52:43 +0300
Yavuz Maşlak <yavuz.maslak at netiletisim.net> 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
> root at 192.168.10.9:/var/cpfile
>
> Thanks
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100518/d5d07a44/signature.pgp
More information about the freebsd-questions
mailing list