From owner-freebsd-questions@FreeBSD.ORG Tue May 18 18:52:35 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 3E5211065673 for ; Tue, 18 May 2010 18:52:35 +0000 (UTC) (envelope-from yavuz.maslak@netiletisim.net) Received: from pop3.ihlas.net.tr (posta.ihlasnet.com.tr [213.238.128.150]) by mx1.freebsd.org (Postfix) with ESMTP id 6415D8FC14 for ; Tue, 18 May 2010 18:52:33 +0000 (UTC) Received: (qmail 5214 invoked by uid 89); 18 May 2010 21:52:25 +0300 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=netiletisim.net; b=MeKq7wlBkOz07xuf4F+FDzeXj04a7r7ckf1EuNXR3QXScgqQ6FuBrkka4gy371A5z1X9AIBn/Mg1vrLEHBvUSxVdgwwgpaSUCAP7bxSaxuYdFAoTJQZs2BfI/fGfnAp7RSBYomJuzo4toENxRej4PHc4WV/xNabnofspNm8FPoA= ; Received: from ihlasnetym (HELO desktop2002) (yavuz.maslak@netiletisim.net@213.238.150.220) by 0 with SMTP; 18 May 2010 21:52:25 +0300 Message-ID: <321BFC21315248CCA4341AA862E19DED@desktop2002> From: =?iso-8859-9?Q?Yavuz_Ma=FElak?= To: Date: Tue, 18 May 2010 21:52:43 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-9"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8089.726 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726 Subject: 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 18:52:35 -0000 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