[svlug] Bash scripts and cron

Marc MERLIN marc_news at merlins.org
Sat Jan 11 16:25:42 PST 2003


On Fri, Jan 10, 2003 at 07:43:41AM -0800, John McDonnell wrote:
> Morning all,
> 
> I have a problem that's been bugging me and I'm wondering if anyone can
> shed some light on it. I have a set of backup scripts that run perfectly
> from the command line but fail when called from cron.
> 
> It's a simple tar and scp script and it looks fine to me. This is on 5
> different Cobalt Raqs. What happens is that tar runs fine, but the scp
> never happens.

Change the first line to
#!/bin/bash -vx

and look at the cron mail output for clues

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/   |   Finger marc_f at merlins.org for PGP key



More information about the svlug mailing list