tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Cron tar not working
@ 1997-03-21 13:06 Dan Peters
  0 siblings, 0 replies; only message in thread
From: Dan Peters @ 1997-03-21 13:06 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-03-21 13:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-21 13:06 Cron tar not working Dan Peters

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