LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-22-2013, 05:06 AM   #1
sivaloga
LQ Newbie
 
Registered: Aug 2013
Posts: 1

Rep: Reputation: Disabled
[root@fugo trace]# sh expect.sh expect.sh: line 9: expect: command not found


expect -c"
# exp_internal 1 # uncomment for debugging
# spawn ssh root@$HOST
expect {
"*password:*" { send $password\r\n; interact }
eof { exit }
}
exit
"
am getting error while executing this script
 
Old 08-22-2013, 05:29 AM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
install expect

I would tell you how, but I don't know how to do it in windows
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Expect script: how do i send function key F12 in an expect script alix123 Programming 4 09-01-2013 10:06 PM
[SOLVED] /usr/bin/expect : Script to check server load using both expect and bash Soji Antony Programming 1 07-28-2010 12:27 AM
expect: line seems to match exactly, however expect thinks not deadeyes Linux - General 5 06-16-2010 07:05 PM
chroot: expect: command not found dbbolton Linux From Scratch 11 12-06-2009 08:33 PM
LXer: Command line automation with Expect-lite LXer Syndicated Linux News 0 03-10-2008 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration