Date: Tue, 26 Jul 2005 10:27:43 +0100 (BST) From: "Graham Bentley" <gbentley@uk2.net> To: freebsd-questions@freebsd.org Subject: Where to put scripts ? Message-ID: <50079.81.174.174.115.1122370063.squirrel@maxproxy1.uk2net.com> In-Reply-To: <20050726020239.195DD16A428@hub.freebsd.org> References: <20050726020239.195DD16A428@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi All, I have a short script for Flexbackup ; #!/bin/sh # Backup using Flexbackup /bin/rm -f /data/IT/Backup_Log/data* /usr/local/bin/flexbackup -newtape /usr/local/bin/flexbackup -dir /data /usr/bin/mt -f /dev/sa0 rewind /usr/bin/mt -f /dev/sa0 offline I put this in /usr/bin/ and made exec In crontab I put ; # Flexbackup Nightly Backup Job 0 2 * * 1-5 root /usr/bin/backup If I run the script manually at the prompt it works perfectly and a new log is written to /data/IT/Backup_Log/ - Great ! (From flexbackup.conf $logdir = '/data/IT/Backup_Log'; # directory for log files) If cron runs it, the old log is rm'ed but no new one is written ??? Is it something to do with paths / perms ? Any help ? -= Thanks =-
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50079.81.174.174.115.1122370063.squirrel>