From owner-freebsd-questions@FreeBSD.ORG Tue Feb 24 10:10:43 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1069F16A4CE for ; Tue, 24 Feb 2004 10:10:43 -0800 (PST) Received: from smtp.thilelli.net (jgabel.net1.nerim.net [80.65.226.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3F0043D1F for ; Tue, 24 Feb 2004 10:10:42 -0800 (PST) (envelope-from jpeg@thilelli.net) Received: from localhost (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with ESMTP id C8AA1241F7 for ; Tue, 24 Feb 2004 19:10:41 +0100 (CET) Received: from bento.thilelli.net ([127.0.0.1]) by localhost (bento.thilelli.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 94963-02 for ; Tue, 24 Feb 2004 19:10:40 +0100 (CET) Received: from webmail.thilelli.net (localhost.thilelli.net [127.0.0.1]) by bento.thilelli.net (Postfix) with SMTP id 7BE98241EA for ; Tue, 24 Feb 2004 19:10:40 +0100 (CET) Received: from 192.168.0.97 (SquirrelMail authenticated user jgabel) by webmail.thilelli.net with HTTP; Tue, 24 Feb 2004 19:10:40 +0100 (CET) Message-ID: <52540.192.168.0.97.1077646240.squirrel@webmail.thilelli.net> In-Reply-To: <403B9112.1080503@circlesquared.com> References: <51804.193.14.163.194.1077641809.squirrel@mail.haas.se> <403B9112.1080503@circlesquared.com> Date: Tue, 24 Feb 2004 19:10:40 +0100 (CET) From: "Julien Gabel" To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at thilelli.net Subject: Re: Shell scripting woes. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Feb 2004 18:10:43 -0000 >> Hello guys! I have two questions about shellscripts: >> 2) The same backup job - is written as a bash script, and it works >> perfectly when run by hand, but it won't run as a cron job. > Are you using a full path in the shebang at the top of the script? > Such as: > > #!/bin/sh > or > #!/usr/local/bin/bash And more generally, is the ${PATH} variable set correctly according to all the tools/utility used along your script? -- -jg.