*BSD News Article 77757


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!news2.acs.oakland.edu!condor.ic.net!news.cic.net!chi-news.cic.net!newspump.sol.net!news.inc.net!uwm.edu!news-peer.gsl.net!news.gsl.net!portc01.blue.aol.com!newsxfer2.itd.umich.edu!uunet!in3.uu.net!news1.saix.net!news.ibi.co.za!patsat.isis.co.za!patsat.isis.co.za!not-for-mail
From: pat@patsat.isis.co.za (Pat Verner)
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,comp.unix.bsd.bsdi.misc,comp.unix.sco.misc
Subject: Re: ftp gurus needed
Followup-To: 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,comp.unix.bsd.bsdi.misc,comp.unix.sco.misc
Date: 8 Sep 1996 10:43:31 -0200
Organization: Pats System BBS
Lines: 52
Distribution: inet
Message-ID: <50uf1j$p81@patsat.isis.co.za>
References: <50n5su$22m@magus.cs.utah.edu> <322F5D5B.6684@tkg.com>
Reply-To: pat@isis.co.za
NNTP-Posting-Host: prv.isis.co.za
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.questions:87229 comp.unix.admin:46966 comp.unix.shell:36396 comp.unix.misc:24952 comp.unix.bsd:16814 comp.unix.solaris:81813 comp.unix.sys5.r4:11311 comp.unix.user-friendly:4008 comp.security.unix:27601 comp.unix.i386:7468 comp.unix.bsd.bsdi.misc:4809 comp.unix.sco.misc:23929

Curt Finch 4138005 (curt@tkg.com) wrote:
: Roger Simmons wrote:
: > 
: > 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

The remote ftpd can be configured (if the sysops so desire it!) to
allow such functions by means of the SITE and/or QUOTE ftp commands.

One of our local sunsite mirrors allows the command "SITE INDEX
<string>" which will do a search of the master index file and return
up to 20 matches - very useful facility.

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

If the remote site is using wu-ftpd (which it usually announces in the
connect strings), then you can usually issue the command:
get <directory_name>.tar.gz 
and the ftpd will automatically create the tar file and compress it on
the fly as it sends it to you.

: > 
: > 3.      Is there a command that will ftp an entire directory structure and put
: >         it all in 1 tar file on the local machine.
: > 
: >         boy this sure would be nice!

See comment above!

: > The remote system is SVR4.2

If you have the authority, then get the wu-ftpd and install it onto
the remote machine - its very portable!

My experience is that at least 80% of the major ftp sites that I
connect to run this particular ftp daemon; unfortunately only a very
few implement the extensions to allow use of things like the search
facility mentioned above.

-- 
Pat Verner			pat@isis.co.za
				pat_verner@f36.n7106.z5.fidonet.org
---------------- **** Linux Advocate Extraordinaire **** -----------------