From owner-freebsd-questions@FreeBSD.ORG Tue May 18 19:43:28 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C6D71065672 for ; Tue, 18 May 2010 19:43:28 +0000 (UTC) (envelope-from rjgonzale@estrads.com.ar) Received: from outbound-mail-313.bluehost.com (cpoproxy3-pub.bluehost.com [67.222.54.6]) by mx1.freebsd.org (Postfix) with SMTP id 2A3B68FC13 for ; Tue, 18 May 2010 19:43:27 +0000 (UTC) Received: (qmail 13695 invoked by uid 0); 18 May 2010 19:43:27 -0000 Received: from unknown (HELO box511.bluehost.com) (74.220.219.111) by cpoproxy3.bluehost.com with SMTP; 18 May 2010 19:43:27 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=estrads.com.ar; h=Received:Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:X-Identified-User; b=o8afnw+OH0WSE18veSD1GkWWrcV0R6D5L3cr0HKJkKPETpInJUEzRWqiasXB+/boi+RN2zQ9xfFAq33Hq6JetllcCp5U4fKt8Dsmae+l0mRpjSILCzPgKIWjv2vcK1KT; Received: from [190.137.10.91] (helo=rjgonzale-laptop) by box511.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1OEShK-0003Lm-8d; Tue, 18 May 2010 13:43:27 -0600 Date: Tue, 18 May 2010 16:43:20 -0300 From: Rodrigo Gonzalez To: Yavuz =?UTF-8?B?TWHFn2xhaw==?= Message-ID: <20100518164320.323c254a@rjgonzale-laptop> In-Reply-To: <321BFC21315248CCA4341AA862E19DED@desktop2002> References: <321BFC21315248CCA4341AA862E19DED@desktop2002> X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.0; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/M8iGZnzy7UquEZDi4cCPhoL"; protocol="application/pgp-signature" X-Identified-User: {32647:box511.bluehost.com:gonosade:estrads.com.ar} {sentby:smtp auth 190.137.10.91 authed with rjgonzale@estrads.com.ar} Cc: freebsd-questions@freebsd.org Subject: Re: I can't execute a script in crontab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2010 19:43:28 -0000 --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 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--