From owner-freebsd-questions@FreeBSD.ORG Tue May 22 12:07:21 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4B732106564A for ; Tue, 22 May 2012 12:07:21 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id C7C188FC15 for ; Tue, 22 May 2012 12:07:20 +0000 (UTC) Received: by eeke49 with SMTP id e49so1781336eek.13 for ; Tue, 22 May 2012 05:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; bh=pqVf2LZM3a3C8aqRU4tPJW7oPm+hAzh1qx7wzbyH1Sw=; b=H3zehbvfjte5qN0e3a6dVqk6/JCeGSPAAJDBlpx/EQFIBCA+Y7qdwi3KH64xuqPJWj d5I8KajnBes83RDdRyvhgW0N1He5/a7nBqXhdUh8Y7XJ06bIPdAfDARwJinrCeeXB2pX JRvzniX0mPXcHaN/K5mCuCaD8YffcMStv0nsrrWNtiMwdvwrvacExewZ1zNZr4nDPjzY 0PbZs/ldhbf3GGVi7+1JEbFUJAgQRmh9wEgtEneoW3CGTxNf693naTd3sNo7W0j6HU1X /OC8SNI9xpwzVFcNPWs/uCBR2Ep1F52zvTCxhPilG7U+SNUXkT4pp6Ch95oFXXRm0Rsg Ch6A== Received: by 10.14.48.7 with SMTP id u7mr4375884eeb.68.1337688439731; Tue, 22 May 2012 05:07:19 -0700 (PDT) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPS id z5sm105715525eem.3.2012.05.22.05.07.16 (version=SSLv3 cipher=OTHER); Tue, 22 May 2012 05:07:17 -0700 (PDT) Date: Tue, 22 May 2012 13:07:14 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20120522130714.2413c310@gumby.homeunix.com> In-Reply-To: <4FBB7D72.9090507@webrz.net> References: <4FBB7D72.9090507@webrz.net> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Startup from script 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, 22 May 2012 12:07:21 -0000 On Tue, 22 May 2012 13:50:10 +0200 Jos Chrispijn wrote: > I have this issue with running commands from a script: > > In my crontab I define script 'do_daily.run': > 30 23 * * * root > /root/cronjobs/do_daily.run > > The content of this script (amongst others) is: > rsync -avpog /etc /backup/$DATE/ > > Funny thing now is that in the output of the script, the following > appears: /root/cronjobs/do_daily.run: rsync: not found > > file credentials of the script itself: > -rwx------ 1 root wheel 246 Jun 20 2010 do_daily.run > You need to set PATH in the crontab or script, or use the full path for rsync.