command file with ftp

I want to execute ftp with file containing all ftp commands on HPUX  10.20.

How can i do that ?

Thanks
didedeAsked:
Who is Participating?
 
gcauthonConnect With a Mentor Commented:
Create a file called .netrc and put it in your home directory.

Use the following form
machine <name of ftp server>
login <login name>
password <password>
macdef init
<ftp commands>
<more ftp commands>
<...>


Make sure you have two newlines after last command
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.