The UNIX and Linux Forums  

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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Automating Autosys LilyClaro UNIX for Advanced & Expert Users 0 03-23-2007 10:15 AM
displaying error while automating ftp bishweshwar UNIX for Advanced & Expert Users 2 11-01-2006 10:32 PM
Automating sendmail JimJim Shell Programming and Scripting 3 11-30-2004 03:31 AM
automating password ? Liamo Shell Programming and Scripting 3 05-24-2004 03:01 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-24-2006
Registered User
 

Join Date: Apr 2006
Posts: 33
Automating telnet and ftp

Hi,

I want to automate FTP. I have a fair idea that this can be done using expect scripting. But I dont how to do it. Please, can anyone give me an example of how to do it in Unix.

Thanks in advance
Reply With Quote
Forum Sponsor
  #2  
Old 04-24-2006
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,698
See Automate FTP / Scripting FTP Transfers
Reply With Quote
  #3  
Old 04-25-2006
Registered User
 

Join Date: Apr 2006
Posts: 33
hi,
I have this script:
spawn ftp 135.112.22.15
expect "Name"
send "anonymous\r"
expect "Password:"
send "nobody@nowhere.com\r"
interact

Now interact connects the keyboard. If there is file in a directory known as /mani/mani1 and file name is mani1.txt. I want get this file to my machine without connecting to keyboard. That is, I want the script to get the file directly. how can I do it.

Thanks in advance
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 10:51 PM.


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