Ask a Question related to SCO, Design and Development.
-
tony@aplawrence.com #1
Re: Cron issue
Chris Fowler <cfowler@linuxiceberg.com> wrote:
>I'm setting up a backup script to be ran nightly by cron on a
>fresh install of 5.0.7. All new equipment. When the backup
>occurs I can see test being written to /tmp/coXXXXXXXX but when I
>use the mail command to see cron output I only see a small subset of the
>output of the command.
>--------------------------------------------------
>#!/bin/sh>START=`date +%s`
>echo "Starting Backup at "`date +%H:%M:%S`" Please Wait....">cd /># Do a full backup
>echo "-----------------------------------------"
>find . -print | cpio -ocvO /dev/tape
>END=`date +%s`
>DIFF=`expr $END - $START`
>echo "-----------------------------------------"
>echo "Finished. Backup took $DIFF seconds to complete"
>echo "Now ejecting Tape"
>#tape /dev/xct0 unload
>--------------------------------------------------Although you don't say so, I suspect you are depending upon the>Below is all I see in mbox. This is the fist time I've seen
>the problem so maybe I need to tweak something in /etc/default/cron
>to allow the full output to be sent via email.
default cron behavior of sending stdout and stderr by mail?
Instead, collect your data in a file and mail that
at the end of the script. Don't generate any output for
cron to mail.
But again your script is insufficient and is not a good backup.
--
[email]tony@aplawrence.com[/email] Unix/Linux/Mac OS X resources: [url]http://aplawrence.com[/url]
Get paid for writing about tech: [url]http://aplawrence.com/publish.html[/url]
tony@aplawrence.com Guest
-
cron v anacron
Newbie here, running Ubuntu 5.10. I understand cron and crontab, but crontab only runs /etc/cron.hourly, anacrontab runs /etc/cron.daily,... -
cron & leafnode
* Richard G. Riley wrote in alt.os.linux.ubuntu: Here is mine in my root crontab root@gates-of-hell:/home/sinner # crontab -e -
cron job
If the cron job run every 15 minute, it will fill up mail box. Does anyone has any idea. Thanks "Davide Bianchi" <davideyeahsure@onlyforfun.net>... -
rsh and cron
I have Ultra 60 with Solaris 2.6, and the rsh always work fine, until recently I foud the rsh does not work on the Ultra 60. But I don't have any... -
cron
Not specific to PHP really, but it all started with a simple PHP script I was automating... I've used cron/crontab on a zillion machines, and it... -
Dan Martin #2
Re: Cron issue
[email]tony@aplawrence.com[/email] wrote in message news:<bh0h9v$m7j$2@pcls4.std.com>...
#####---------------------------------------------------------------#####> Chris Fowler <cfowler@linuxiceberg.com> wrote:>> >I'm setting up a backup script to be ran nightly by cron on a
> >fresh install of 5.0.7. All new equipment. When the backup
> >occurs I can see test being written to /tmp/coXXXXXXXX but when I
> >use the mail command to see cron output I only see a small subset of the
> >output of the command.
>
>>> >--------------------------------------------------
> >#!/bin/sh>> >START=`date +%s`
> >echo "Starting Backup at "`date +%H:%M:%S`" Please Wait....">> >cd /> ># Do a full backup
> >echo "-----------------------------------------"
> >find . -print | cpio -ocvO /dev/tape
> >END=`date +%s`
> >DIFF=`expr $END - $START`
> >echo "-----------------------------------------"
> >echo "Finished. Backup took $DIFF seconds to complete"
##### Chris, insert program here to do bit-level verify ;-) #####
##### Regards, Dan #####
#####---------------------------------------------------------------#####
>> >echo "Now ejecting Tape"
> >#tape /dev/xct0 unload
> >-------------------------------------------------->> >Below is all I see in mbox. This is the fist time I've seen
> >the problem so maybe I need to tweak something in /etc/default/cron
> >to allow the full output to be sent via email.
> Although you don't say so, I suspect you are depending upon the
> default cron behavior of sending stdout and stderr by mail?
>
> Instead, collect your data in a file and mail that
> at the end of the script. Don't generate any output for
> cron to mail.
>
> But again your script is insufficient and is not a good backup.
>
> --
> [email]tony@aplawrence.com[/email] Unix/Linux/Mac OS X resources: [url]http://aplawrence.com[/url]
> Get paid for writing about tech: [url]http://aplawrence.com/publish.html[/url]Dan Martin Guest



Reply With Quote

