The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help with expect script somedude Shell Programming and Scripting 4 06-04-2009 12:39 PM
Using expect script in a shell script or vice versa nua7 Shell Programming and Scripting 0 07-18-2008 07:16 AM
Need Help with EXPECT script markus2008 UNIX for Advanced & Expert Users 5 03-12-2008 08:49 PM
help with 'expect' script? maeve Shell Programming and Scripting 0 06-02-2004 06:18 PM
Expect Script HELP zuinc Shell Programming and Scripting 2 04-30-2002 09:42 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 12-08-2008
sam786 sam786 is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 20
no output from expect script

#!/opt/app/bin/expect -f
expect <<EOF
spawn ssh -l gateadm eurexmiss1
expect "Password: "
send "password\r"
expect "hostname% "
send "/opt/gate/transferdir/reports00/report\r"


I trying to login to host and then change directory to /opt/gate/transferdir/reports00/report,but do not end with output prompt so I can then do "ls -ltr" on xterm.
Can some please help me to achieve above.

Thanks in advance

Last edited by sam786; 12-09-2008 at 04:27 AM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0