From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078609810544.tru64-unix-managers.marc@archive.invalid> From: Dan Peters Date: Fri, 21 Mar 1997 13:06:31 +0000 To: tru64-unix-managers Subject: Cron tar not working X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078609810544 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