- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Expect Progam
Operating System - HP-UX
1760558
Members
2856
Online
108894
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
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
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-21-2002 04:23 AM
тАО05-21-2002 04:23 AM
Expect Progam
Hi,
I have written a small expect script which will telnet to a particular ip & will do the login process automatically. Then it launches an application called "hots" on the command prompt. The hots application screen looks like this
1 - Add
2 - Command Prompt
3 - Exit
In the script after issuing "hots" on the command prompt, it interacts with the user. As soon as user selects "3" it should come out from the application & close the telnet session.
The second thing is when the user selects "2" option, the user can see his home directory(application server) & if the user presses ctrl+d on the command prompt, the application getting closed & come back to the same place(telnet session).
Can any one tell me how to handle the above mentioned things in a expect script?
Thanks
Vasu
I have written a small expect script which will telnet to a particular ip & will do the login process automatically. Then it launches an application called "hots" on the command prompt. The hots application screen looks like this
1 - Add
2 - Command Prompt
3 - Exit
In the script after issuing "hots" on the command prompt, it interacts with the user. As soon as user selects "3" it should come out from the application & close the telnet session.
The second thing is when the user selects "2" option, the user can see his home directory(application server) & if the user presses ctrl+d on the command prompt, the application getting closed & come back to the same place(telnet session).
Can any one tell me how to handle the above mentioned things in a expect script?
Thanks
Vasu
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 06:12 AM
тАО05-21-2002 06:12 AM
Re: Expect Progam
I'd personally use perl with the expect and telnet modules.
Here is a site describing the use of Expect.pm:
http://aspn.activestate.com/ASPN/CodeDoc/Expect/Expect.html
live free or die
harry
Here is a site describing the use of Expect.pm:
http://aspn.activestate.com/ASPN/CodeDoc/Expect/Expect.html
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 06:19 AM
тАО05-21-2002 06:19 AM
Re: Expect Progam
Harry,
Thanks for your quick reply, but I dont have perl on my box. So, I want to do the whole thing in Expect/Tcl script only.
Vasu
Thanks for your quick reply, but I dont have perl on my box. So, I want to do the whole thing in Expect/Tcl script only.
Vasu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 06:27 AM
тАО05-21-2002 06:27 AM
Re: Expect Progam
Vasu,
I'd start here then:
http://expect.nist.gov/
You can get perl from:
http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.6.1/
and the expect and telnet modules:
http://www.cpan.org/modules/by-module/Expect/
http://search.cpan.org/doc/JROGERS/Net-Telnet-3.02/lib/Net/Telnet.pm
live free or die
harry
I'd start here then:
http://expect.nist.gov/
You can get perl from:
http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.6.1/
and the expect and telnet modules:
http://www.cpan.org/modules/by-module/Expect/
http://search.cpan.org/doc/JROGERS/Net-Telnet-3.02/lib/Net/Telnet.pm
live free or die
harry
Live Free or Die
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