Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auto ftp unix to win98

Status
Not open for further replies.

andyraff

Technical User
Feb 20, 2001
10
GB
I need a script that ftp a file from rs6000 unix box to a win98 pc without the need to user login names and passwords
 
Hello:
Look at writing a macro and what is required....in the below documents...




--------------------------------------

Writing Macros

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

#-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top