HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Expect query
Operating System - HP-UX
1832595
Members
3018
Online
110043
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
05-29-2002 02:35 AM
05-29-2002 02:35 AM
Expect query
Hi,
After interacting with the user using "interact" command in Expept script, Can we handle somemore thing after interact command in the Expect like
interact ^Z return
...
expect "hello:" {send "ok" }
expect "simple:" {send "su\r"}
...
if [fork] exit
disconnect
expect eof
Thanks
Vasu
After interacting with the user using "interact" command in Expept script, Can we handle somemore thing after interact command in the Expect like
interact ^Z return
...
expect "hello:" {send "ok" }
expect "simple:" {send "su\r"}
...
if [fork] exit
disconnect
expect eof
Thanks
Vasu
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 03:47 AM
05-29-2002 03:47 AM
Re: Expect query
Hi
I think inter_return
look at
http://www.fnal.gov/docs/products/expect/expect.1.html
Actions such as break and continue cause control structures (i.e., for, proc) to behave in the usual way. However return causes interact to return to its caller, while inter_return causes interact to cause a return in its caller. For example, if "proc foo"
called interact which then executed the action
inter_return, proc foo would return. (This means that if interact calls interpreter interactively typing return will cause the interact to continue, whileinter_return will cause the interact to return to its caller.)
steve steel
I think inter_return
look at
http://www.fnal.gov/docs/products/expect/expect.1.html
Actions such as break and continue cause control structures (i.e., for, proc) to behave in the usual way. However return causes interact to return to its caller, while inter_return causes interact to cause a return in its caller. For example, if "proc foo"
called interact which then executed the action
inter_return, proc foo would return. (This means that if interact calls interpreter interactively typing return will cause the interact to continue, whileinter_return will cause the interact to return to its caller.)
steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 04:04 AM
05-29-2002 04:04 AM
Re: Expect query
Hi Steve,
Thanks for your reply, do you have any sample programs on that?. Basically I have to do some cleanup process after the intraction. So How can I do that?.
Thanks
Vasu
Thanks for your reply, do you have any sample programs on that?. Basically I have to do some cleanup process after the intraction. So How can I do that?.
Thanks
Vasu
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP