tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Dan Peters <petersd () novachem ! com>
To: tru64-unix-managers
Subject: Cron tar not working
Date: Fri, 21 Mar 1997 13:06:31 +0000	[thread overview]
Message-ID: <96078609810544.tru64-unix-managers.marc@archive.invalid> (raw)

Greetings Managers:

having had recent problems with tar via cron, I copied a working .sh script
from another machine and modified
the command to backup to appropriate directories.
I tested it interactively, and it worked beautifully. However, when cron ran
the job, the following error appeared:

tar: cannot open /dev/rmt0h: I/O error

the script is as follows:

#!/usr/bin/ksh
#---------------------------------------------------------------------
# Get the current date

cur_date=`date`
cur_mon=`echo $cur_date | cut -d" " -f2`
cur_day=`echo $cur_date | cut -d" " -f3`
cur_hr=`echo $cur_date | cut -d" " -f4 | cut -c1-2`
echo $cur_mon-$cur_day-$cur_hr

# Backup contents of /usr/users, /x/c21 

/sbin/tar -cvf /dev/rmt0h /usr/users /x/c21 >
/tmp/scim21_backup_$cur_mon-$cur_day-$cur_hr 2>&1

#---------------------------------------------------------------------
 the error message is generated into the log file in /tmp. As I mentioned,
this exact (except directories) script is
running fine on an identical AS1000 4/200 3.2c machine.

If someone can suggest an action to take I would be much appreciative.

TIA, will Summarize

Dan

                 reply	other threads:[~1997-03-21 13:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox