> I am trying to run in a shell script and I wondering if there is a way
> to make ontape skip the mount tape message. I was wondering if I could
> be pipe ontape to a return command. Could someone shed a little light on
> this subject if this is possible, please.
We run a shell that does this by using an input file that has a couple of
new-line entries. We call it archive.input.
The shell, run_arc.sh, contains the lines below looks. It runs a level zero
without requiring a tape mount prompt.
ontape -s -L 0 < /inf_dir/bin/archive.input \
>> /inf_dir/error/archive.out 2>> /object/error/archive.out
By running it with
nohup /inf_dir/bin/run_arc.sh &
You also free up the terminal you submit the archive on.
And you could put the running statment in a shell aas well.
We are currently on aix.3.2.5 with 7.11.uc1. od the Dynamic Server.
I would be cautious in trying to do this unattended. The absence of
a mounted tape usually causes a large number of error messages to
the archive.out file and they will go on until some human stops it
or you fill some file system
Hope this helps.
Con Woodall Colorado St. U.; Veterinary Teach. Hosp.; Ft. Collins CO 80523,
"There is no 'maybe' in Boolean algebra."