[olug] Unix Tip: FTY AUTOMATED TRANSFERS

Unix Guru Universe listserv at ugu.com
Mon May 12 23:35:46 UTC 2003


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

			      UNIX GURU UNIVERSE 
			         UNIX HOT TIP

			Unix Tip 1958 - May 12, 2003

		    http://www.ugu.com/sui/ugu/show?tip.today

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


FTY AUTOMATED TRANSFERS

Automatic file transfer through a script 
between machines using FTP.

If one wants to transfer files between 
UNIX machines, here are the steps to follow.
1. The .netrc file
   a. create .netrc in the home directory.
   b. add this line
   machine <target machine> login <login name> password <password>

      e.g. 
   machine abc.mydomain.com login deepak password deep123

   c. chmod 600 .netrc

2. The Script:
   ftp abc.mydomain.com  << endl
   prompt
   put test1.c
   quit
   endl

This should do it.


This tip generously supported by: dkotian1 at rediffmail.com


--------------------------------------------------------------------------
To Subscribe:    http://www.ugu.com/sui/ugu/show?tip.subscribe
To Unsubscribe:  http://www.ugu.com/sui/ugu/show?tip.unsubscribe
To Submit A Tip: http://www.ugu.com/sui/ugu/show?tip.today

==========================================================================
DISCLAIMER: All UNIX HOT TIPS ARE OWNED BY THE UNIX GURU UNIVERSE AND ARE
NOT TO BE SOLD, PRINTED OR USED WITHOUT THE WRITTEN CONSENT OF THE UNIX 
GURU UNIVERSE. ALL TIPS ARE "USE AT YOUR OWN RISK". UGU  ADVISES THAT 
ALL TIPS BE TESTED IN A NON-PRODUCTION DEVELOPMENT ENVIRONMENT FIRST.

Unix Guru Universe - www.ugu.com - tips at ugu.com - Copyright 1994-2001
==========================================================================



More information about the OLUG mailing list