Unix Tip #4443- May 11, 2013


SEARCH : Home : Help : Today's Tip

FTP AUTOMATED TRANSFERS


To add to the earlier tip
on automated transfer using
FTP, you can define a macro
by name 'init' which will
automate the whole transfer.

Defining the macro.

In the .netrc file after the
definition for the machine
name,add the following
definition.

macdef init
bin
hash
cd
!cd
put/get
bye

The line begining with macdef
starts the definition of a
macro.All the sub sequent
lines upto a blank line (or
end of file) are part of
the macro.

Now if you type ftp
at the prompt,
the whole ftp will happen
automatically.

These macros can also be
defined in any other name in
which case,you will have to
type the macro name at the
ftp prompt for its statements
to get executed.


This tip generously supported by: subha@hitechclub.com

NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted by various unix admins around the globe. UGU suggest you read and test each tip in a non-volitile environment before placing into production.


LAST 5 TIPS
4442 - AUTOMATIC LOGIN TO REMOTE HOSTS
4441 - LARGES FILES MORE FLAVORS
4440 - HPUX MEMORY RESOURCES
4439 - TRUE64 SENDING JOBS
4438 - USING PERL TO REVERSE


I want to SUBSCRIBE and get a UGU Tip everyday.
I want to UNSUBSCRIBE and NOT get a UGU Tip everyday.

If you have a UNIX TIP let us know, we just may use it:
(All tips become the property of the Unix Guru Universe)
Email Address:

Yes, email me a Hot Unix Tip everday.

Enter Hot Unix Tip (optional):

Yes, I will support this tip

Captcha (not case sensitive):


Please enter the above letters:


HOME | Flavors | Admin | Network | Security | S/W | Help | Events | Vendors | Careers | Internet
About | Add Link | Feedback | Search

Copyright © 1994-2005 Unix Guru Universe