[olug] Unix Tip: FTY AUTOMATED TRANSFERS

Trent Melcher tmelcher at trilogytel.com
Tue May 13 02:37:17 UTC 2003


I don't know about the rest of you, but I have never been confortable
hardcoding a password in a script, no matter what the permissions of the
file are.

Trent

-----Original Message-----
From: olug-bounces at olug.org [mailto:olug-bounces at olug.org] On Behalf Of
Unix Guru Universe
Sent: Monday, May 12, 2003 6:36 PM
To: olug at olug.org
Subject: [olug] Unix Tip: FTY AUTOMATED TRANSFERS



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

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

_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug




More information about the OLUG mailing list