From owner-freebsd-questions@FreeBSD.ORG Tue Feb 24 09:59:58 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 8D19A16A4CE for ; Tue, 24 Feb 2004 09:59:58 -0800 (PST) Received: from dyer.circlesquared.com (host217-45-219-83.in-addr.btopenworld.com [217.45.219.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4641743D1F for ; Tue, 24 Feb 2004 09:59:57 -0800 (PST) (envelope-from peter@circlesquared.com) Received: from circlesquared.com (localhost.petanna.net [127.0.0.1]) i1OHxk1J015772; Tue, 24 Feb 2004 17:59:57 GMT (envelope-from peter@circlesquared.com) Message-ID: <403B9112.1080503@circlesquared.com> Date: Tue, 24 Feb 2004 17:59:46 +0000 From: Peter Risdon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20031102 X-Accept-Language: en-us, en MIME-Version: 1.0 To: mathias@haas.se References: <51804.193.14.163.194.1077641809.squirrel@mail.haas.se> In-Reply-To: <51804.193.14.163.194.1077641809.squirrel@mail.haas.se> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org 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 17:59:58 -0000 mathias@haas.se wrote: >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 or whatever. PWR.