[HPADM] [SUMMARY] A scripting/ftp Question

From: Deepak John Cutinha (deepak_cutinha@yahoo.com)
Date: Thu Jun 20 2002 - 03:54:03 EDT


Dear Gurus,

Thanks for all the help and pointers...
Here is the summary....

-------------------------------------
Julius Szelagiewicz/Vance Brasher

- don't use ftp, use rsync

Lodge, David

- using POSIX shell co-processes and parsing all
input/output from 'ftp -nv'

Lutz Sommerfeld

- use wget http://hpux.connect.org.uk/

Bill Hassell
 
- Create a simple function called batchftp where you
supply all the needed parameters (hostname, login,
password, source file location and destination
location). Then figure out in your script what the
names of each file will be, assign them to a variable
and then use a for-loop to go through each file and
ftp it across.

Richard Wright

- You can put this code into a posix or ksh script and
do what ever you want before and after.

ftp -n <<============EOF=
    open $dest
    user $user $pass
    ascii
    cd $todir
    append *
      quit
============EOF=

Thierry ITTY

-
echo 'cd DIR
dir
quit' | ftp remote > /tmp/remote.dir
ls -al DIR > /tmp/local.dir
<<<match directory contents>>>
<<<generate gets'n puts>>>
ftp remote < generated.commands

anil rajapure

- check for files you want to move/copy

(This can be done in several ways-you may need to have
remsh access to remote server, or you can run your
script to check files on the remote server on remote
server itself,move it location from where they will be
ftped)

ftp script on the other server to copy those files.

Kiitos!!

DJC

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:14 EDT