It is currently Sat, 04 Dec 2021 20:16:37 GMT



 
Author Message
 How to automate FTP
I wanna automate a FTP Job, with a fixed User/Passowrd. can anyone tell how
to achieve this, using a shell script on a unix server?

regards



 Sat, 19 Jul 2003 16:06:29 GMT   
 How to automate FTP

#! /bin/sh
ftp -n << EOF
open the.ftp.server
user $USER $PASSWD
bin
cd directory
get filename
quit
EOF

beers,

--
Otavio Exel /<\oo/>\ oe...@economatica.com.br



 Sat, 19 Jul 2003 20:26:08 GMT   
 How to automate FTP
"mam ftp" and see the section on the .netrc file.


 Sat, 19 Jul 2003 22:58:21 GMT   
 How to automate FTP
In article <955sih$...@news.emirates.net.ae>,
  "Raj" <rsha...@zadco.co.ae> wrote:
User/Passowrd. can anyone tell how

(
echo "
        open server
 user usrid password
        asc
        put asciifile
        bin
       put binaryfile

        lcd "Another directory on the source
machine"
        put anotherfile

        cd "Another Dir on Dest"
        put somefile
        bye
        "
) | ftp -B 3 -i -n -v -d

Sent via Deja.com
http://www.deja.com/



 Sun, 20 Jul 2003 02:43:09 GMT   
 How to automate FTP
In article <955sih$...@news.emirates.net.ae>,
  "Raj" <rsha...@zadco.co.ae> wrote:
User/Passowrd. can anyone tell how

(
echo "
        open server
 user usrid password
        asc
        put asciifile
        bin
       put binaryfile

        lcd "Another directory on the source
machine"
        put anotherfile

        cd "Another Dir on Dest"
        put somefile
        bye
        "
) | ftp -B 3 -i -n -v -d

Sent via Deja.com
http://www.deja.com/



 Sun, 20 Jul 2003 02:43:12 GMT   
 How to automate FTP
In article <955sih$...@news.emirates.net.ae>,
  "Raj" <rsha...@zadco.co.ae> wrote:

(
echo "
        open server
 user usrid password
        asc
        put asciifile
        bin
       put binaryfile

        lcd "Another directory on the source/Local machine"
        put anotherfile

        cd "Another Dir on Dest"
        put somefile
        bye
        "
) | ftp -B 3 -i -n -v -d

Sent via Deja.com
http://www.deja.com/



 Sun, 20 Jul 2003 02:44:59 GMT   
 How to automate FTP
In article <955sih$...@news.emirates.net.ae>,
  "Raj" <rsha...@zadco.co.ae> wrote:

Raj,
    Here is a sample script
(
echo "
        open server
 user usrid password
        asc
        put asciifile
        bin
       put binaryfile

        lcd "Another directory on the source machine"
        put anotherfile

        cd "Another Dir on Dest"
        put somefile
        bye
        "
) | ftp -B 3 -i -n -v -d

Deepak

Sent via Deja.com
http://www.deja.com/



 Sun, 20 Jul 2003 02:50:30 GMT   
 
   [ 7 post ] 

Similar Threads

1. Looking for automate ftp tranfers of large numbers of files

2. HELP with automated ftp

3. Need Script to Automate FTP transfers

4. best way to automate ftp?

5. Another Automated FTP question

6. Need script to automate FTP transfers

7. Help automating ftp

8. Program to Automate FTP session

9. How to automate ftp from Windows NT directory to UNIX directory

10. how2 automate ftp ?


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software