Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!garlic.com!news.scruz.net!kithrup.com!news.Stanford.EDU!nntp-hub2.barrnet.net!cpk-news-feed2.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.mathworks.com!news.kei.com!news.texas.net!vixen.cso.uiuc.edu!sdd.hp.com!col.hp.com!news.corp.hp.com!isonews.bbn.hp.com!news From: Eric Zucker <Eric_Zucker@Non-HP-Switzerland-om1.om.hp.com> 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 Date: Tue, 10 Sep 1996 17:14:11 +0200 Organization: HP Lines: 51 Distribution: inet Message-ID: <323585C3.6D0@Non-HP-Switzerland-om1.om.hp.com> References: <50n5su$22m@magus.cs.utah.edu> NNTP-Posting-Host: milkweed.gva.hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.05 9000/710) Xref: euryale.cc.adfa.oz.au comp.unix.questions:87387 comp.unix.admin:47126 comp.unix.shell:36491 comp.unix.misc:25009 comp.unix.bsd:16819 comp.unix.solaris:82115 comp.unix.sys5.r4:11333 comp.unix.user-friendly:4015 comp.security.unix:27651 comp.unix.i386:7473 comp.unix.bsd.bsdi.misc:4834 comp.unix.sco.misc:24150 Roger Simmons scribbled: > > 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 > > 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. > > boy this sure would be nice! > The remote system is SVR4.2 > > TIA > > Roger Can you use rcp ? This is even easier: assume the files you want to get are in account user1 of system2.xyz.org.uk, you are user2 on system1.abc.org.ch 1- create a file .rhosts in the $HOME of the source system with: system1.abc.org.ch user2 2- On system1, say rcp -rp user1@system2.xyz.org.uk::foo/ foo and there it comes. Now this may well be HP-UX specific... It definitely works fine, and avoids hardcoding passwords in scripts. Note that all system names are dummy. Eric