- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- autoexpect
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
Forums
Discussions
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
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
10-25-2005 09:14 AM
10-25-2005 09:14 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 09:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 09:25 AM
10-25-2005 09:25 AM
Re: autoexpect
A few ideas there:
http://www.hpuxconsulting.com/5003.ppt
or
http://www.hpuxconsulting.com/5004.ppt
I can't access them to know which one is the one you may need due to a slow connection here. They're both good though :-)
A never presented HP world powerpoint doc that goes through the whole process.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 10:05 AM
10-25-2005 10:05 AM
Re: autoexpect
I appreciate your sharing the resources.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 12:34 AM
10-26-2005 12:34 AM
Re: autoexpect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 03:44 AM
10-26-2005 03:44 AM
Re: autoexpect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 03:49 AM
10-26-2005 03:49 AM
Re: autoexpect
set timeout -1
spawn ssh dnmst0n
match_max 100000
expect -exact "Last successful login for root: Wed Oct 26 10:40:05 2005 on ttyp4\r\r
Last unsuccessful login for root: Wed Oct 26 09:17:47 2005 on ttyp1\r\r
\r\r
SCO OpenServer(TM) Release 6.0.0\r\r
\r\r
(C) Copyright 1976-2005 The SCO Group, Inc. and its suppliers\r\r
All rights reserved.\r\r
\r\r
For complete copyright credits,\r\r
enter \"copyrights\" at the command prompt.\r\r
\r\r
Good Morning - Welcome to dnmst0n\r
\r
^[GD Good Morning - Welcome to dnmst0n\r
^[GE Good Morning - Welcome to dnmst0n\r
\r
^[\[H^[\[Jdnmst0n#"
send -- "cd /u/Informix\r"
expect -exact "cd /u/Informix\r
cd /u/informix? "
send -- "\r"
expect -exact "\r
ok\r
dnmst0n#"
send -- "pwd\r"
expect -exact "pwd\r
/u/informix\r
dnmst0n#"
send -- "exit\r"
expect eof
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 07:47 AM
10-26-2005 07:47 AM
Re: autoexpect
Simplify your "expect/send" interactions by removing the "-exact" switch from the expect command and wildcarding the matches. Could you attach your autoexpect generated script instead of copying and pasting it.
regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 08:30 AM
10-26-2005 08:30 AM
Re: autoexpect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 08:47 AM
10-26-2005 08:47 AM
Re: autoexpect
regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 09:11 AM
10-26-2005 09:11 AM
Re: autoexpect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2005 09:55 AM
10-26-2005 09:55 AM
Re: autoexpect
Took out the invisible character which appeared in one "send" statement and replaced each of the "expect" statements in your script with:
expect "dnmst0n#"
I'm glad it worked for you!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2005 06:48 AM
10-31-2005 06:48 AM
Re: autoexpect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2005 09:53 AM
11-01-2005 09:53 AM