1847253 Members
4142 Online
110263 Solutions
New Discussion

Re: Ftp Problems

 
Ed Wojtkowski
New Member

Ftp Problems

HP9000/745i/50 Workstation

When using ftp commands in shell, command
put or mput functions but ftp prompt never returns.

One file is transferred to remote site, but a new shell must be opened and the ftp command initiated again.

Also, FTP is enabled, but system cannot be acessed from other workstations.
3 REPLIES 3
Tony Constantine_1
Regular Advisor

Re: Ftp Problems

Have you tried running from a shell script

ftp -vin desthost <user username password
cd /filesystem
mput *txt
quit
EOF
James R. Ferguson
Acclaimed Contributor

Re: Ftp Problems

Ed:

I think you simply want to start your ftp in your shell session with the "-i" option. Alternatively, issue the "prompt" command before you start your multiple transfers. From the man pages:

-i Disable interactive prompting by multiple-file commands; see the prompt command, below. By default, when this option is not specified, prompting is enabled.

prompt : Toggle interactive prompting. By default, ftp prompts the user for a yes or no response for each output file during multiple-file commands. If interactive prompting is disabled, ftp performs the command for all specified files.

Does this help?

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: Ftp Problems

Ed:

I think you simply want to start your ftp in your shell session with the "-i" option. Alternatively, issue the "prompt" command before you start your multiple transfers. From the man pages:

-i Disable interactive prompting by multiple-file commands; see the prompt command, below. By default, when this option is not specified, prompting is enabled.

prompt : Toggle interactive prompting. By default, ftp prompts the user for a yes or no response for each output file during multiple-file commands. If interactive prompting is disabled, ftp performs the command for all specified files.

Does this help?

...JRF...