ftp macros are defined in the $HOME/.netrc file. The following steps describe how to
create an ftp macro.
Prerequisites
You must have created the $HOME/.netrc file.
To Write a Macro
1.Edit the $HOME/.netrc file to include the following instructions:
macdef init
put schedule
Be sure to insert a blank line at the end of your ftp macro. The blank line
terminates the ftp macro. In the above example, the macdef subcommand defines
the subcommand macro init. The line following is the command the macro
specifies, in this case put schedule, where schedule is the name of a file.
2.After creating the ftp macro, at the command line prompt, enter:
ftp abyss
In this example, abyss is the host name to which you are connecting. ftp scans
the $HOME/.netrc file for a login definition for the host abyss and uses the
login definition to log the user into abyss.
3.After logging in, at the command line prompt, enter:
ftp init
In this example, ftp scans for the macro named init and executes the
command or commands the macro specifies.
An ftp macro is associated with the login entry immediately preceding it. ftp
macros are not global to the $HOME/.netrc file. The macro init will be
executed automatically upon login. Other macros can be executed from the ftp
prompt (ftp>) by entering the following:
$getit
In this example, the $ executes the ftp macro getit.
==========================
I think it is easier to pull from rs6000 to the Win 98 ...but it can go either way...the PC
with win98 has to be up and have the ability to accept files to be written to it...
Good Luck
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.