Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2012 02:25:49 +0000 (UTC)
From:      Walter Hurry <walterhurry@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Newbie question: Why aren't my cron jobs running?
Message-ID:  <jr69bd$gum$3@dough.gmane.org>
References:  <jr683k$gum$1@dough.gmane.org> <CAHu1Y70YJ6voMx2YPfPoxBVhQ5Pje4h%2BfanpLkCKz-CGBMW78w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?jr69bd$gum$3>