1755723 Members
2706 Online
108837 Solutions
New Discussion юеВ

ftp 'put'

 
Bob Foster
New Member

ftp 'put'

We are trying to ftp 'put' from an HP3000 system to an OS/2 ftp server with the requirement of renaming the file on the remote (OS/2) with a space in the filename.

From non-HP3000 systems, we simply surround the filename with "..." so the command appears as:
put source "destination file name with spaces"

When the command is executed we see it tried to keep just "destination as the filename (including the " and stopping at the first space). We have tried various combinations of single quotes, double quotes, no quotes, slashes, backslashes, etc.

Any ideas?
These go to eleven.
5 REPLIES 5
Mark Vollmers
Esteemed Contributor

Re: ftp 'put'

Bob-

I don't know if this will work or not, since I'm not sure about how ftp will handle it, but can you make a copy of the file and rename it with spaces on UNIX, and move it to a directory by itself (/home/temp or something). say the file name is "file copy today" then, in ftp, try using

put file*

I know that you can get away with using this for commands like cp and rm, but I don't know if the wildcard will be accepted by ftp. give it a shot.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
MARTINACHE
Respected Contributor

Re: ftp 'put'

Hi,

If you want to use * :

- in ftp : prompt

- then use mput instead of put

Regards,

Patrice
Patrice MARTINACHE
Bob Foster
New Member

Re: ftp 'put'

A couple more tidbits of info about the problem:
1)the destination filename must be exactly this:
"$$ ID=EP003F BID='AB1234' PASSWORD=ABCD"

2)the HP3000 is running MPEIX ver 6.0 that does not allow $ in the filename
These go to eleven.
Paula J Frazer-Campbell
Honored Contributor

Re: ftp 'put'

Bob

Try:-

put firstfile 'first file'

or :-
put firstfile `first file`

It may work


Paula
If you can spell SysAdmin then you is one - anon
Deepak Extross
Honored Contributor

Re: ftp 'put'

Would it be possible to ftp *from* the OS/2 server *to* the Unix box?

Instead of using the Unix 'put' command, try doing a
get filename "file name"
from your OS/2 machine.

Hope this helps.