Operating System - HP-UX
1828203 Members
2285 Online
109975 Solutions
New Discussion

Re: ftp with the nmap subcommand

 
John Bolton
New Member

ftp with the nmap subcommand

the nmap subcommand does not seem to map the file name correctly.

My example:
remote system A has a file named a.b that I want to get to local system B.

local system B: command string:

ftp -in << EOD
open systema
user gorilla banana
lcd /temp/systemb/files
cd /temp/systema/files
nmap $1.$2 $1.$2.daily.HOT1.five.six.ARD
mget *
quit
EOD

Produces a file on local system B:

/temp/systemb/files/..daily.HOT1.five.six.ARD

Any suggestions?
2 REPLIES 2
Steve Steel
Honored Contributor

Re: ftp with the nmap subcommand

Hi

try
nmap \$1.\$2 \$1.\$2


You are getting the shell values

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
John Bolton
New Member

Re: ftp with the nmap subcommand

Thank you. It worked perfectly. I read the comments concerning the \ but must have misunderstood.