Cron tar not working

From: Dan Peters <petersd_at_novachem.com>
Date: Fri, 21 Mar 1997 08:06:31 -0500

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
Received on Fri Mar 21 1997 - 14:39:45 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT