Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!zorba!dtynan From: steve@mullian.ee.mu.oz.au (Steve Mabbs) Newsgroups: comp.unix Subject: Re: How to 'ftp' automatically??? Message-ID: <3679@zorba.Tynan.COM> Date: 13 Jul 90 20:55:09 GMT References: <3587@zorba.Tynan.COM> <3644@zorba.Tynan.COM> Sender: dtynan@zorba.Tynan.COM Reply-To: uunet!mullian.ee.mu.OZ.AU!steve (Steve Mabbs) Organization: Dept. of Electrical Engineering, University of Melbourne Lines: 39 Approved: dtynan@zorba.Tynan.COM In article <3644@zorba.Tynan.COM> Chris Davies writes: >In article <3587@zorba.Tynan.COM> jimli@milton.u.washington.edu (Jimmy Li) writes: >>Everytime I login on my school Unix machine, I need to ftp several files to >>my accounts on another machine. It gets pretty tedious typing in username, >>passwood, and so on over and over again. > >Why not use "rcp" (Remote CoPy)? If you've got ftp then you've probably got >this. You could also try rdist(1). Create a file called 'distfile' in your home directory that looks like: % cat distfile distfiles = (~/file1 ~/src/file2 ~/bin/file3.sh) (${distfiles}) -> chris@machine_b (${distfiles}) -> chris@machine_c % and just type 'rdist'. If rdist is present on the other machine, then this should work OK. As Jimmy says, you should also create a .rhosts file on machine_b and machine_c. Note: you can specify another distfile using the -f option (e.g. I use '.rdist' to keep it hidden). Then just put 'rdist -f .rdist' in your .login and it should all happen automatically. rdist has been designed to maintain identical copies of multiple files/dirs across many machines. See the manual page for more info. Regards, Steve --------------- Stephen A. Mabbs, Dept of Electrical and Electronic Engineering University of Melbourne Phone: office (room 3.10): +61 3 344 6714 PARKVILLE VIC 3052 vlsi lab (room 3.16): +61 3 344 7436 AUSTRALIA Fax: +61 3 344 6678 "Well, I never!". "Well, maybe that's your problem, lady".