- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Expect help needed
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
Discussions
Forums
Discussions
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
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
03-30-2007 01:26 PM
03-30-2007 01:26 PM
Expect help needed
I have a shell level code as follows...
cat hostlist.txt |
whiler read host platform
do
echo "server:$host - OS:$platform"
done
Conside the hostlist.txt host
host1 hp
host2 sun
host3 hp
host4 aix
Can any of get me te equivalent code for expect program please ?
Many Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2007 02:58 PM
03-30-2007 02:58 PM
Re: Expect help needed
The expect language is good for scripts that are 'expect'ing (get it) input. Expect allows you to automate that.
Using expect for something as simple as what you have above is really a waste.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2007 11:57 AM
04-02-2007 11:57 AM
Re: Expect help needed
I use perl-expect nowadays, I prefer the syntax and can code faster with it. It's a matter of personal opinion, of course.
Olivier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 02:02 AM
04-03-2007 02:02 AM
Re: Expect help needed
I have good understanding about Tcl and expect. I am trying to execute a code for list of servers reading from a file.
Anyway,, i got the solution from Tcl commands.
Thank you verymuch onceagin. I am not good at perl... but try to learn and see how it is benefitial
...Jags
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2007 02:09 AM
04-03-2007 02:09 AM