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.