From owner-freebsd-questions@FreeBSD.ORG Tue Jun 12 02:56:02 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 4DDEF1065677 for ; Tue, 12 Jun 2012 02:56:02 +0000 (UTC) (envelope-from racerx@makeworld.com) Received: from omr8.networksolutionsemail.com (omr8.networksolutionsemail.com [205.178.146.58]) by mx1.freebsd.org (Postfix) with ESMTP id 06B958FC14 for ; Tue, 12 Jun 2012 02:56:01 +0000 (UTC) Received: from cm-omr9 (mail.networksolutionsemail.com [205.178.146.50]) by omr8.networksolutionsemail.com (8.13.8/8.13.8) with ESMTP id q5C2l4D4030507 for ; Mon, 11 Jun 2012 22:47:04 -0400 Authentication-Results: cm-omr9 smtp.user=racerx@makeworld.com; auth=pass (CRAM-MD5) X-Authenticated-UID: racerx@makeworld.com Received: from [50.44.138.106] ([50.44.138.106:11424] helo=[192.168.222.21]) by cm-omr9 (envelope-from ) (ecelerity 2.2.2.41 r(31179/31189)) with ESMTPA id 3C/08-05613-8ADA6DF4; Mon, 11 Jun 2012 22:47:04 -0400 Message-ID: <4FD6ADAA.1020402@makeworld.com> Date: Mon, 11 Jun 2012 21:47:06 -0500 From: Chris User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: Newbie question: Why aren't my cron jobs running? 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, 12 Jun 2012 02:56:02 -0000 On 6/11/2012 9:25 PM, Walter Hurry wrote: > On Mon, 11 Jun 2012 19:10:21 -0700, Michael Sierchio wrote: > >> Have you installed bash? It's not in the system base. >> >> What's in your shell scripts? > > Thanks for the quick response. > > $ pkg_info|grep bash > > bash-4.2.28 The GNU Project's Bourne Again SHell > > $ which bash > > /bin/bash > > $ > > $ less $HOME/bin/exports.sh > > #!/bin/bash > > LOG=$HOME/log/exports.log > > logger -t walterh-cronjob Exports started > > echo Exports started at `date` > $LOG > > rm $HOME/postgresql/* > > psql packages -f $HOME/sql/exports.sql > > cd $HOME/postgresql > > tar cfz postgresql.tgz * > > rm *csv > > echo Exports finished at `date` >> $LOG > > logger -t walterh-cronjob Exports finished > > /home/walterh/bin/exports.sh (END) > > _______________________________________________ > 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" > > > I tend to use full path names in my shell scripts. So for shits n giggles, try that. Instead of tar cfz postgresql.tgz * Try /bin/tar cfz postgresql.tgz * etc, etc, etc Use the paths for all commands such as rm, psql, logger etc. -- Keep well, Chris <><