Solved

command file with ftp

Posted on 1998-08-25
1
183 Views
Last Modified: 2010-04-21
I want to execute ftp with file containing all ftp commands on HPUX  10.20.

How can i do that ?

Thanks
0
Comment
Question by:didede
1 Comment
 
LVL 3

Accepted Solution

by:
gcauthon earned 50 total points
ID: 2006792
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

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now