![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pull a file from a remote server through a shell script | sashankkrk | UNIX for Dummies Questions & Answers | 2 | 04-23-2008 01:13 PM |
| Script runs fine on UNIX Server...Not through MSK Tool kit on Windows Server | madhunk | UNIX for Dummies Questions & Answers | 5 | 01-31-2008 09:30 AM |
| Shell Script to ftp from windows server | shilpa.rajput | Shell Programming and Scripting | 8 | 11-06-2007 08:52 PM |
| Move root disk to new server | VirginiaSA | SUN Solaris | 18 | 05-20-2005 02:48 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
how to move a file from one server to another server using FTP in shell script?
I have a file --> file1.txt
i need to copy this file to another server using FTP....the 2 servers are server1 and server2..may i know how to write a script that can do this? thanks in advance! Im a newbie to this... |
| Forum Sponsor | ||
|
|
|
|||
|
ok thanks! however, now i need to put all the text files in a directory over to the other server. The directories contains other files beside text files. i only need to put text files. I now only manage to put a single text file to the other server. I also have error in my coding.....
Heres my coding: set FILENAME = /local/filename.log ftp -v -n "myipadd" << cmd user "user" "passwd" cd /remote/FTP lcd /local/ ssh_install ls -1 *.txt $local_path > $FILENAME put $FILENAME quit cmd |