Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2010 16:43:20 -0300
From:      Rodrigo Gonzalez <rjgonzale@estrads.com.ar>
To:        Yavuz =?UTF-8?B?TWHFn2xhaw==?= <yavuz.maslak@netiletisim.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: I can't execute a script in crontab
Message-ID:  <20100518164320.323c254a@rjgonzale-laptop>
In-Reply-To: <321BFC21315248CCA4341AA862E19DED@desktop2002>
References:  <321BFC21315248CCA4341AA862E19DED@desktop2002>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/M8iGZnzy7UquEZDi4cCPhoL
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

The script must start with

#!/bin/sh

and be executable

On Tue, 18 May 2010 21:52:43 +0300
Yavuz Ma=C5=9Flak <yavuz.maslak@netiletisim.net> wrote:

> I use freebsd7.2
>=20
> 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 ?
>=20
> cat myscript
> /usr/bin/scp -i /root/.ssh/id_rsa.pub /root/cpfile=20
> root@192.168.10.9:/var/cpfile
>=20
> Thanks=20
>=20
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"


--Sig_/M8iGZnzy7UquEZDi4cCPhoL
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvy7dgACgkQZHmnrc0PV8/1JgCeM2QJQ/Vhrew45sKxfepF7ESE
g/YAn26f/Bjd43B2/gCoLSoY4bzmPPE+
=NWKK
-----END PGP SIGNATURE-----

--Sig_/M8iGZnzy7UquEZDi4cCPhoL--



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