- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Expect program query
Operating System - HP-UX
1748008
Members
4193
Online
108757
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
05-27-2002 06:31 AM
05-27-2002 06:31 AM
Expect program query
Hi,
I have written a small expect script which runs on A box, it telnets to B box with the given Id/pwd, then it gives control to the user. The expect program terminates for the following condition
1. When the user press ctrl+d
2. When the user type exit
3. When the user press 1 then it tries to kill all the process and then quits the program.
My question:
1. When 1 is pressed it should kill all the process apart from ksh,telnetd & PID. But I noticed that it executes the ps & grep command on A machine NOT on B. So, it says the error like "18425: no such process". How do I kill those process which are running on B box? or else is there any other way to kill all the process without killing explicitily one by one process.
2. When user press 9 anywhere (e.g $echo hello9) it tries to kill the process & terminates the program. But it should not happen like this, so how can I modify the program to avoid this condition or else is there any other command to handle this?
Thanks
Vasu
I have written a small expect script which runs on A box, it telnets to B box with the given Id/pwd, then it gives control to the user. The expect program terminates for the following condition
1. When the user press ctrl+d
2. When the user type exit
3. When the user press 1
My question:
1. When 1 is pressed it should kill all the process apart from ksh,telnetd & PID. But I noticed that it executes the ps & grep command on A machine NOT on B. So, it says the error like "18425: no such process". How do I kill those process which are running on B box? or else is there any other way to kill all the process without killing explicitily one by one process.
2. When user press 9
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP