This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes how to auto login through shell scripts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "how to auto login through shell scripts?" Watch "how to auto login through shell scripts?" New topic
Author

how to auto login through shell scripts?

Dez Max
Ranch Hand

Joined: Oct 01, 2002
Posts: 41
Hi Folks,
I'm quite inexperience in shell scripts. I've a situation wherein i want to a telnet to another server through my shell scripts, and do some stuffs and come back. Now my problem how to supply login and passwd in shell scripts, so that it does not ask user to type in the user id and passwd. Let me know if any of you know about this.
Hope to hear from you guys.
regs
Dez
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

Have you ever heard of a program called "expect"?


Customer surveys are for companies who didn't pay proper attention to begin with.
Dez Max
Ranch Hand

Joined: Oct 01, 2002
Posts: 41
No i haven't heard . Do let me know about it?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951
    
  19

When in doubt, Google it out!
http://www.linux-mag.com/2001-01/guru_01.html
http://www-106.ibm.com/developerworks/linux/library/l-sc1/
Dez Max
Ranch Hand

Joined: Oct 01, 2002
Posts: 41
thanks Tim.
 
 
subject: how to auto login through shell scripts?
 
Similar Threads
How to manually deploy a war file in tomcat server
java calling pearl scripts
PLEASE HELP Suse Login problem
response.sendRedirect(Url)
ClassPath Conflict