- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Connecting telnet users from shell script
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
Discussions
Discussions
Forums
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
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
тАО05-23-2004 11:03 PM
тАО05-23-2004 11:03 PM
I want to write a shell script, which will test some unix user-ids. The user-ids could be either ftp ids or telnet ids. Testing for FTP-ids is easy. But for telnet ids, how should I connect to those users through script so that it will not prompt for passwords. I have user-id/pwds for all the users. All the users are present on the same machine and the script will also run from the same machine.
Does anybody know how to achieve this?
Thanks,
Shailesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2004 11:14 PM
тАО05-23-2004 11:14 PM
Re: Connecting telnet users from shell script
http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.41/
This will let you talk to the tty in script fashion...
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2004 11:24 PM
тАО05-23-2004 11:24 PM
Re: Connecting telnet users from shell script
expect will do the job for you, as duncan has mentioned
with best wishes
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 03:54 AM
тАО05-25-2004 03:54 AM
Re: Connecting telnet users from shell script
Try & say me.
By
Gabriele
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 03:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 10:31 PM
тАО05-25-2004 10:31 PM
Re: Connecting telnet users from shell script
The solution worked perfectly. In the script you have given different sleep times. Is that time fixed? And if yes, how did you arrive to those timings?
Thanks a lot for the help.
Thanks,
Shailesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 10:35 PM
тАО05-25-2004 10:35 PM
Re: Connecting telnet users from shell script
I tried the binary given by Duncan, but it didn't work. Actually I am working on a Solaris machine. Will that binary run on Solaris also? Being a new member I was not sure, whether I could post questions about Solaris on this list? So didn't mention about it.
Anyway, Thanks for ur help.
Thanks,
Shailesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 11:22 PM
тАО05-25-2004 11:22 PM
Re: Connecting telnet users from shell script
# time
at the end of the output you read:
real 0.0
user 0.0
sys 0.0
You add the 3 times and you have the time for the sleep. You can add some seconds to the results.
By Gabriele
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2004 11:42 PM
тАО05-25-2004 11:42 PM
Re: Connecting telnet users from shell script
Sorry, absolutely no way that a HP-UX binary is going to run on Solaris, or vice-versa - never have, never will!
Of course you can get expect binaries for Solaris. The equivalent site for Solaris users is:
http://www.sunfreeware.com/
You'll find expect here somewhere - make sure you download the correct version for your release of Solaris.
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2004 01:53 AM
тАО06-25-2004 01:53 AM
Re: Connecting telnet users from shell script
I need to capture the system time in the log file before the ftp and after the ftp.
Also, the time before and after the remote telnet.
How can I do this?
Per Piacere/please.