[aklug] Re: shell script and cron trouble

From: Royce Williams <royce@alaska.net>
Date: Fri Mar 13 2009 - 07:58:01 AKDT

Damien Hull wrote, on 3/13/2009 7:37 AM:
> The following shell script runs fine if I run it manually. If I setup a cron job it ends before tar finishes. Well, that's a guess but the resulting backup is too small. It's also a bad tar file. I hope someone can tell me why it isn't working.
>
> SERVER - Ubuntu running the zimbra email system.
>
> SCRIPT - IF YOU CAN CALL IT THAT
>
> #! /bin/sh

Call it in verbose mode and reschedule the cron to trigger now + 5 minutes.

#! /bin/sh -x

Also make sure that all commands have explicit paths.

Royce

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Fri Mar 13 07:58:10 2009

This archive was generated by hypermail 2.1.8 : Fri Mar 13 2009 - 07:58:10 AKDT