From owner-freebsd-questions@FreeBSD.ORG Tue Jun 12 02:26:09 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 96166106566C for ; Tue, 12 Jun 2012 02:26:09 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4CE2B8FC0A for ; Tue, 12 Jun 2012 02:26:09 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SeGo1-0001v9-9S for freebsd-questions@freebsd.org; Tue, 12 Jun 2012 04:26:05 +0200 Received: from cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com ([86.21.186.149]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Jun 2012 04:26:05 +0200 Received: from walterhurry by cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Jun 2012 04:26:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Walter Hurry Date: Tue, 12 Jun 2012 02:25:49 +0000 (UTC) Lines: 43 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) 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:26:09 -0000 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)