The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Calling expect scripts from other expect scripts seva Shell Programming and Scripting 0 04-03-2008 10:45 AM
Command line automation with Expect-lite iBot UNIX and Linux RSS News 0 03-10-2008 09:30 AM
Tcl expect HELP dave_m Shell Programming and Scripting 0 02-27-2008 08:08 AM
Use Send command of Expect package neha123 Shell Programming and Scripting 6 12-23-2007 11:39 AM
Expect and auto expect command arun_v Shell Programming and Scripting 0 03-29-2006 04:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-08-2008
Registered User
 

Join Date: Jul 2008
Posts: 7
Smile how to use expect command?

Hello,
I am doing a project which asks me to enter password 4 times in a row. I need to enter the same password 4 times. My target is to enter password once and apply it 4 times.
My friend told me to use "expect" command. Can you please give me a sample code to do so.

sample command :- $ ssh <user name>@<ip address>(like :ssh root@127.0.0.1)
enter <user name>'s password:
Reply With Quote
Forum Sponsor
  #2  
Old 10-08-2008
Registered User
 

Join Date: Dec 2007
Location: Virginia, USA.
Posts: 250
Take a look here. Expect FAQ (Frequently Asked Questions)
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0