The script must start with

#!/bin/sh

and be executable

On Tue, 18 May 2010 21:52:43 +0300
Yavuz Maşlak <yavuz.mas...@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 
> r...@192.168.10.9:/var/cpfile
> 
> Thanks 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscr...@freebsd.org"

Attachment: signature.asc
Description: PGP signature

Reply via email to