Re: Ontape and Shell Script
Posted in 1997
On Tue, 4 Mar 1997, Terron Wright wrote:
> 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.
>
Terron,
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.
run_arc.sh
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,
USofA; 970-491-1244 FAX 970-491-4100 cwoodall@vth1.vth.colostate.edu
"There is no 'maybe' in Boolean algebra."
--