- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Interactively answering a question
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
11-03-2005 03:46 AM
11-03-2005 03:46 AM
Interactively answering a question
Please mount tape and press Return to continue ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 03:54 AM
11-03-2005 03:54 AM
Re: Interactively answering a question
I am not sure if I understood your question correctly but if you are asking how to generate the effect of hitting a return by input pipes, here it is in two different ways:
1.
create a file with a single carriage return character in it (vi myfile, then hit return all by itself and save it)
you can cat this file and pipe it to your script and when the question is asked, it will read the return character from the input pipe
2.
in the script, where it will give you this prompt, you can echo "^M" character to the command (vi the script and create the ^M character by hitting ctrl-V then ctrl-M)
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 03:54 AM
11-03-2005 03:54 AM
Re: Interactively answering a question
http://hpux.cs.utah.edu/hppd/hpux/Tcl/expect-5.43/
out of curiousity why would you want to do that?
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 03:57 AM
11-03-2005 03:57 AM
Re: Interactively answering a question
EOF
- the blank line between the ontape and the EOF is where it answers your question.
If the backup goes over to a second tape you will have a problem with this solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 04:04 AM
11-03-2005 04:04 AM
Re: Interactively answering a question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 04:28 AM
11-03-2005 04:28 AM
Re: Interactively answering a question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 04:55 AM
11-03-2005 04:55 AM
Re: Interactively answering a question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 05:23 AM
11-03-2005 05:23 AM
Re: Interactively answering a question
Could you post your script.
thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 05:28 AM
11-03-2005 05:28 AM
Re: Interactively answering a question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 06:42 AM
11-03-2005 06:42 AM
Re: Interactively answering a question
If you're running Informix locally then you need "spawn" not "send". Replace...
# send -- "su - informix\r"
...with
# spawn su - informix
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2005 07:09 AM
11-03-2005 07:09 AM
Re: Interactively answering a question
enjoy!