*BSD News Article 77544


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!oleane!tank.news.pipex.net!pipex!news.mathworks.com!news-peer.gsl.net!news.gsl.net!mcsun!EU.net!Ireland.EU.net!maths.tcd.ie!not-for-mail
From: dwmalone@maths.tcd.ie (David Malone)
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 23:20:15 +0100
Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
Lines: 45
Distribution: inet
Message-ID: <50njmv$n1f@hamilton.maths.tcd.ie>
References: <50n5su$22m@magus.cs.utah.edu> <50ncu7$fmp@news.service.uci.edu>
NNTP-Posting-Host: hamilton.maths.tcd.ie
Xref: euryale.cc.adfa.oz.au comp.unix.questions:87033 comp.unix.admin:46841 comp.unix.shell:36313 comp.unix.misc:24896 comp.unix.bsd:16810 comp.unix.solaris:81362 comp.unix.sys5.r4:11291 comp.unix.user-friendly:4000 comp.security.unix:27547 comp.unix.i386:7464

mcoogan@parker.bio.uci.edu (Michael Coogan) writes:

>>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

Most sites have an "ls-lR" file in their root directory which you could
ftp to get this info.

>>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.

Some ftp daemons support "translations" where if you say 

	get dirname.tar

it will tar it up and if you say 

	get dirname.tar.gz

you tar it up and gzip it at the same time. The wu-fttd is
one such daemon.

>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.

Mirror will do it - I think its home site is src.doc.ic.ac.uk

>>The remote system is SVR4.2

The tar thing depends completly on what sort of ftp daemon they are
running. Unless they have installed a new ftpd then it is unlikely
it will work, and mirror ( or something similar ) would be the best
choice.

	David.