Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scripting question

Status
Not open for further replies.
Joined
Jun 28, 2002
Messages
64
Location
GB
Hi all,

I am creating a script that handles a tape back up program, it requires a user to enter the achrive level (0) and press enter when ready. I have got the archive level ok i pipe that in to the program, but I cant seem to get it to send a carriage return signel

so it goes

echo &quot;0&quot; | ontape << 'carriage return ??'
/n
/n

Any help much appreciated!
P.
 
echo &quot;0\n&quot; | ontape
 
or

echo &quot;Enter archive level .. and press <Enter> \b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\c &quot;
read ans
echo &quot;$ans\n&quot; | ontape

Mike

--
| Mike Nixon
| Unix Admin
|
----------------------------
 
Hi bigdaddy01,

You may wish to have a look around - there are an awful lot of scripts and programs for dbas in the software repository area, including a couple for ontape/onarchive.

HTH

Cheers,
-gumbie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top