ftp files from one server to another using shell script | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

ftp files from one server to another using shell script

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-08-2010
itai itai is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 8 July 2010, 9:22 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ftp files from one server to another using shell script

Hi Guys Any Help

I have created a spool file that i need to copy onto another server using FTP in a shell script both servers are linux
Sponsored Links
    #2  
Old 07-08-2010
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 1 October 2014, 12:42 PM EDT
Location: Switzerland - GE
Posts: 5,778
Thanks: 160
Thanked 406 Times in 381 Posts
Yes...
Then what?
Sponsored Links
    #3  
Old 07-08-2010
itai itai is offline
Registered User
 
Join Date: Jul 2010
Last Activity: 8 July 2010, 9:22 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
copying files onto another server using ftp in shell scrip

help please anyone
Ihave created a script that spool a csv file and store it in a directoryon my server however i need to use the same sript to ftp the spooled data onto another linux server i have included below statement
to ftp file to another linux server on my script

ftp -n IPADDREES
quote login $LOGIN
quote PASS $PASSWORD
lcd $mydirectory
cd $remote Directory
bin"
mput filename.txt
quit
echo "Finished FTP on.... " `date`
However i only get below command prompt after finishing executing the sript
ftp>
    #4  
Old 07-08-2010
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 1 October 2014, 12:42 PM EDT
Location: Switzerland - GE
Posts: 5,778
Thanks: 160
Thanked 406 Times in 381 Posts
look at:
http://www.unix.com/shell-programmin...t-timeout.html
http://www.unix.com/shell-programmin...ll-script.html
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Run shell script on another server using ssh anwesh Shell Programming and Scripting 1 02-18-2010 12:00 PM
shell script to ftp the files from windows to unix server kavithakuttyk Shell Programming and Scripting 10 10-15-2009 05:00 PM
Shell script to transfer the files from source to target server. radhirk Shell Programming and Scripting 12 01-19-2009 08:31 PM
Shell script for FTP a file from one server to another server mahantysk Shell Programming and Scripting 0 09-17-2008 06:22 AM
how to move a file from one server to another server using FTP in shell script? forevercalz Shell Programming and Scripting 4 10-27-2005 01:53 AM



All times are GMT -4. The time now is 02:24 AM.