*BSD News Article 77541


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!newspump.sol.net!www.nntp.primenet.com!nntp.primenet.com!news.sgi.com!csulb.edu!drivel.ics.uci.edu!news.service.uci.edu!mcoogan
From: mcoogan@parker.bio.uci.edu (Michael Coogan)
Newsgroups: unix.general,unix.hacks,unix.sys,comp.unix.questions,comp.unix.admin,comp.unix.shell,comp.unix.misc,comp.unix.bsd,comp.os.linux,comp.unix.solaris,comp.unix.sys5.r4,comp.unix.user-friendly,comp.security.unix,comp.unix.unixware,comp.unix.i386,co
Subject: Re: ftp gurus needed
Date: 5 Sep 1996 20:24:39 GMT
Organization: UCI Bio-Sci Internet Services
Lines: 57
Distribution: inet
Message-ID: <50ncu7$fmp@news.service.uci.edu>
References: <50n5su$22m@magus.cs.utah.edu>
NNTP-Posting-Host: parker.bio.uci.edu
Xref: euryale.cc.adfa.oz.au comp.unix.questions:87029 comp.unix.admin:46837 comp.unix.shell:36309 comp.unix.misc:24895 comp.unix.bsd:16809 comp.unix.solaris:81345 comp.unix.sys5.r4:11290 comp.unix.user-friendly:3999 comp.security.unix:27545 comp.unix.i386:7463

In article <50n5su$22m@magus.cs.utah.edu>,
Roger Simmons <rwsimmon@cadesm44.eng.utah.edu> wrote:
>Summary:
>Keywords: 
>
>I have 3 questions RE: ftp all releated:
>
>I am looking for a program/utility or way to do the following:
>
>1.      Is there a way to execute a unix command at the remote host while at
>        the ftp prompt?
>        I want to obtain a directory listing(including subdirectories) on the
>        remote server.  I need to execute:
>                find . -type d  > dirlist.out
>
>        and then ftp this file to the local machine

I have no idea  ;)

You may want to try ncftp, it allows many more commands than normal ftp.  
In particular, it supports redirection, and flags to common ftp commands 
such as ls.  I have not used this program extensively, so I don't know if 
it will do EXACTLY what you want...  I also do not know if there is a 
binary available for your system, though I believe you can get the source.

>
>2.      Also is there a way to transfer an entire directory structure
>        from the remote host to the local machine while retaining the
>        directory structure on the local machine?
>
>3.      Is there a command that will ftp an entire directory structure and put
>        it all in 1 tar file on the local machine.


Both of these can be done with xDir (if you run X-windows) by the 
Lawrence Livermore Laboratory.  Check out their homepage for more info.  
Sorry I don't have the URL, but a web search on the lab should pull it 
up.  Again, I don't know about your system...  

NB:  You may have to tar the directory stucture up on your local machine, 
I don't know whether xDir allows that PARTICULAR command.

If you don't use X, then you may want to check out the mirror perl 
script.  I believe you can find it by searching in the linux software map.

>
>        boy this sure would be nice!
>The remote system is SVR4.2
>
>TIA
>
>Roger

Hope this points you in a vaguely correct direction  ;),

--mike