- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- expect tool
Operating System - HP-UX
1753295
Members
6734
Online
108792
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
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
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
09-17-2003 09:57 PM
09-17-2003 09:57 PM
expect tool
I am a beginner to expect tool , I used the expect tool script as a subshell of a KSH script. I had to do the folloeing things using that expect script . 1. login as a super user
2. uninstall and install a package
3. come out of the SU mode by giving exit .
4.Then to interact with the KSH .(main shell)
expect "#"
send "pkgadd -d \r"
expect "y,n,?"
send "y\r"
expect "successful"
send "exit\r"
The last command send "exit" was not executed .
Can any one help me out how to proceed and why this command was not executed .
If I have to comne out of the script and if the script should interact normally with the main shell wht command should i give inorder that the expect (subshell susccessfully interacts with KSH main shell)
2. uninstall and install a package
3. come out of the SU mode by giving exit .
4.Then to interact with the KSH .(main shell)
expect "#"
send "pkgadd -d \r"
expect "y,n,?"
send "y\r"
expect "successful"
send "exit\r"
The last command send "exit" was not executed .
Can any one help me out how to proceed and why this command was not executed .
If I have to comne out of the script and if the script should interact normally with the main shell wht command should i give inorder that the expect (subshell susccessfully interacts with KSH main shell)
Dilligent personality to acquire knowledge and to become an expertise in UNIX
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2003 10:06 PM
09-17-2003 10:06 PM
Re: expect tool
First set
log_user 1
at the beginning of your script. This will give you enough output to debug your script.
Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP