Re: [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron

2014-04-01 Thread Tanstaafl
On 3/31/2014 10:43 AM, Daniel Frey wrote: You need to use the full path to commands in your script or set an environment variable. In my case using full paths to executables was enough. Bingo... thanks Daniel! Now to figure out why one of my remote systems is sending the cron email results a

Re: [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron

2014-03-31 Thread Alan McKinnon
On 31/03/2014 13:01, Tanstaafl wrote: > Hi all, > > Ok, this is really irritating me... > > I have a script that simply performs some backups. The commands are like > this: > > # perform tar.tgz backup of /etc > tar -czpvf $BKUP_DIR_etc/$BKUP_DateTime-dev-ecat-etc.tgz /etc > > When I run this s

Re: [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron

2014-03-31 Thread Daniel Frey
On 03/31/2014 04:01 AM, Tanstaafl wrote: > Hi all, > > Ok, this is really irritating me... > > I have a script that simply performs some backups. The commands are like > this: > > # perform tar.tgz backup of /etc > tar -czpvf $BKUP_DIR_etc/$BKUP_DateTime-dev-ecat-etc.tgz /etc > > When I run thi

Re: [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron

2014-03-31 Thread Neil Bothwick
On Mon, 31 Mar 2014 08:01:03 -0400, Tanstaafl wrote: > > You're running tar with -v so it should produce output no matter what > > it does. Is that mailed to you? What does it say? > > I don't have these mailed to me, but like I said, it absolutely does > produce output - the problem is, when

Re: [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron

2014-03-31 Thread Tanstaafl
On 3/31/2014 7:13 AM, Neil Bothwick wrote: On Mon, 31 Mar 2014 07:01:48 -0400, Tanstaafl wrote: I have a script that simply performs some backups. The commands are like this: # perform tar.tgz backup of /etc tar -czpvf $BKUP_DIR_etc/$BKUP_DateTime-dev-ecat-etc.tgz /etc When I run this script

Re: [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron

2014-03-31 Thread Helmut Jarausch
On 03/31/2014 01:01:48 PM, Tanstaafl wrote: Hi all, Ok, this is really irritating me... I have a script that simply performs some backups. The commands are like this: # perform tar.tgz backup of /etc tar -czpvf $BKUP_DIR_etc/$BKUP_DateTime-dev-ecat-etc.tgz /etc When I run this script manua

Re: [gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron

2014-03-31 Thread Neil Bothwick
On Mon, 31 Mar 2014 07:01:48 -0400, Tanstaafl wrote: > I have a script that simply performs some backups. The commands are > like this: > > # perform tar.tgz backup of /etc > tar -czpvf $BKUP_DIR_etc/$BKUP_DateTime-dev-ecat-etc.tgz /etc > > When I run this script manually, it does what it is sup

[gentoo-user] Script to tar.tgz /etc, works run manually, broken when run from cron

2014-03-31 Thread Tanstaafl
Hi all, Ok, this is really irritating me... I have a script that simply performs some backups. The commands are like this: # perform tar.tgz backup of /etc tar -czpvf $BKUP_DIR_etc/$BKUP_DateTime-dev-ecat-etc.tgz /etc When I run this script manually, it does what it is supposed to, and the