In article <361CD903.7BF5@bloomberg.net>, Art S. Kagel
<kagel@bloomberg.net> writes
>Daniel Willems wrote:
>>
>> Hello ,
>>
>> Working on a Digital Alpha runningWindows NT 4.0 sp 3 , we use ontape -s -L
>> 0 to backup our Informix 7.23TC1 database.
>> I want to use a "at" command to schedule the backup.
>> The problem I have is that the ontape needs a <newline> at the command line
>> after asking for the tape.
>> Someone told me that I should use the following command :
>> ontape -s -L 0 < enter.txt>> where enter.txt is a file containing a <new line> character, but this
>> doesn't work ( still waiting after asking for the tape )
>>
>> Please help
>
>Actually you need two newlines. Daniel, keep in mind that this will
>only work if the entire archive fits on a single tape volume. If not
>ontape will hang again, irretrievably, asking for the second tape to
>be mounted.
>
Hence use
echo "\\n\\n" | ontape -s -L 0 | head -100
If ontape does hang e.g. tape is not loaded, tape drive fails etc....
it MAY keep promting for the tape. The head -100 will stop it using
SIGPIPE after 100 lines....
>Art S. Kagel
--
David Williams
Maintainer of the Informix FAQ
Primary site (Beta Version) http://www.smooth1.demon.co.uk
Official site http://www.iiug.org/techinfo/faq/faq_top.html
I see you standin', Standin' on your own, It's such a lonely place for you, For
you to be If you need a shoulder, Or if you need a friend, I'll be here
standing, Until the bitter end...
So don't chastise me Or think I, I mean you harm...
All I ever wanted Was for you To know that I care