- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Automating a script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 04:49 AM
03-30-2006 04:49 AM
ontape -s -L 0<
\n
hit
and the other was (press_enter_here = a return in the script):
ontape -s -L 0 <
hit
I thank you in advance for all your assistance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 04:53 AM
03-30-2006 04:53 AM
Re: Automating a script
echo "0\n" |ontape -s -L 0
which did not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 05:00 AM
03-30-2006 05:00 AM
Re: Automating a script
ontape -s -L 0<
hit
The ontape command does not have and option to avoid the prompting for ENTER?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 05:03 AM
03-30-2006 05:03 AM
Re: Automating a script
echo "put tape and press enter key"
read rep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 05:05 AM
03-30-2006 05:05 AM
Re: Automating a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 05:07 AM
03-30-2006 05:07 AM
Re: Automating a script
ontape -s -L 0 >> /var/tmp/myontape.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 05:09 AM
03-30-2006 05:09 AM
Re: Automating a script
what informix says to try is:
echo "\n" | ontape -s -L 0 | tee -a $LOG
which did not work. there is no switch for ontape that would skip the message.
as for the shell it would be posix I think. I do know it is not Bourne.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 05:22 AM
03-30-2006 05:22 AM
Re: Automating a script
This is so weird. Informix says it can be done but I keep trying their suggestions and none seem to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 05:26 AM
03-30-2006 05:26 AM
Re: Automating a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 05:37 AM
03-30-2006 05:37 AM
Re: Automating a script
Take a look at expect, which is a tool designed explicitly for automating such tasks...http://expect.nist.gov/
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 05:48 AM
03-30-2006 05:48 AM
Re: Automating a script
LEVEL=0
echo "$LEVEL
"| ontape -s | head -100 > /tmp/logfile
hope it helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 06:07 AM
03-30-2006 06:07 AM
Re: Automating a script
It seems that it is looking for that specific key. I typed a bunch of letters and numbers but nothing happened till I pressed the return key.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 06:11 AM
03-30-2006 06:11 AM
Solutionhttp://www.backupcentral.com/infback.html
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 06:25 AM
03-30-2006 06:25 AM
Re: Automating a script
You can use the attached script, just update it according to your needs and Informix version.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 06:42 AM
03-30-2006 06:42 AM