Vedr: Trying to automate ONTAPE
Posted in 1999
Topics: Backup & Restore, Platform-Specific Issues
ontape -s -L 0 << !^M
!
bjarne.wilken.jensen@almbrand.dk wrote in message
<7o66m0$l4f$1@news.xmission.com>...
>
>
>
>Oleh Holynskyj wrote :
>>> Hi Folks:
>>>
>>> I was hoping to get some guidance on trying to script past the
>>> annoying "please mount tape and press return to contune..." message
>>> after entering:
>>>
>>> ontape -s -L 0>>>
>>> I tryed to pipe in a carriage return by placing it in another file and
>>> entering:
>>>
>>> ontape -s -L 0 < ontape.input>>>
>>> I must be placing the wrong code in the input file because ontape
>>> still stops and asks for a tape. I am trying to do this on an RS/6000
>>> running AIX 4.3.
>>>
>>> Any suggestions would be much appreciated.
>>>
>>> Thanks,
>>>
>>> Oleh
>>> Hi Folks:
>
>In your Unix-script enter the ontape command follwed by a "<< SQLEND".The
>first enter to start the ontape utility is after "<< SQLEND" the second
>enter as answer to "please mount ...." is just before the finale "SQLEND".
>The two "(enter)" just comments.
>Try this. It worked for me on AIX 4.1.4 and AIX 4.2 before turned to onbar.
>
>ontape -s -L 0 << SQLEND (enter)
>(enter)>SQLEND
>
>Bjarne Wilken Jensen
>Alm. Brand
>Denmark
>
>
>
Oleh Holynskyj wrote :
>> Hi Folks:
>>
>> I was hoping to get some guidance on trying to script past the
>> annoying "please mount tape and press return to contune..." message
>> after entering:
>>
>> ontape -s -L 0>>
>> I tryed to pipe in a carriage return by placing it in another file and
>> entering:
>>
>> ontape -s -L 0 < ontape.input>>
>> I must be placing the wrong code in the input file because ontape
>> still stops and asks for a tape. I am trying to do this on an RS/6000
>> running AIX 4.3.
>>
>> Any suggestions would be much appreciated.
>>
>> Thanks,
>>
>> Oleh
>> Hi Folks:
In your Unix-script enter the ontape command follwed by a "<< SQLEND".The
first enter to start the ontape utility is after "<< SQLEND" the second
enter as answer to "please mount ...." is just before the finale "SQLEND".
The two "(enter)" just comments.
Try this. It worked for me on AIX 4.1.4 and AIX 4.2 before turned to onbar.
ontape -s -L 0 << SQLEND (enter)
(enter)SQLEND
Bjarne Wilken Jensen
Alm. Brand
Denmark
In article <7o66t3$4of$1@taliesin.netcom.net.uk>,
"Neil Truby" <ntruby@netcomuk.co.uk> wrote:
> ontape -s -L 0 << !> ^M
> !
>
echo "0\\n\\n"|ontape -s
Works fine too.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.