1748093 Members
6094 Online
108758 Solutions
New Discussion юеВ

Re: FTP Questions

 
SOLVED
Go to solution
Jorge Cocomess
Super Advisor

FTP Questions

Hi,

My question is, can you have multiple "mput" inside of one (1) FTP script??

One single batch job logs into a FTP server and drops 4 different files and rename them.

Example:
prompt
ascii
mput file1*.txt
mput file2*.txt
mput file3*.txt
mput file4*.txt
bye

Do you see anything wrong with this method? I am sure there are many different ways of doing things, but I would like to keep it simple.

Thank you in advance.

Jorge
7 REPLIES 7
Robert Gezelter
Honored Contributor

Re: FTP Questions

Jorge,

I do not see any reason why it will not work (at least in principal).

Which TCP/FTP are you using? There could be a problem of the FTP user process prompts the user for comfirmation.

- Bob Gezelter, http://www.rlgsc.com
Steven Schweda
Honored Contributor

Re: FTP Questions

> There could be a problem of the FTP user
> process prompts the user for comfirmation.

Assuming that "of" actually meant "if", I'd
guess that the "prompt" command was intended
to solve any such problems.

My question would be, why ask the question
in the first place, instead of, say, just
running the experiment? I don't see any
obvious problems, but that proves little,
compared with an actual test, which should
settle the question pretty easily (and much
more reliably).
Jorge Cocomess
Super Advisor

Re: FTP Questions

It worked. However, for some reason, the last file "file4.txt" was created twice for some reason. I looked over the script over a dozen times and ran the test 6-7 times came up with the same result.

What gives? I don't understand why.

Any ideas?

Thanks.

Jorge
Steven Schweda
Honored Contributor

Re: FTP Questions

> I don't understand why.

I don't understand why you expect anyone to
be able to guess the answer without being
able to see the actual command procedure, its
actual output, a DIRECTORY listing of the
directory involved, and probably a bunch more
stuff which I can't think of yet.

Perhaps a Psychic Hot-Line would be a better
resource in a case like this.
Phil.Howell
Honored Contributor
Solution

Re: FTP Questions

using your script with tcpip 5.1 on two vms machines, I get what I expected - no duplication of last file.
When sending from vms to a windows server, I again get what I expected - vms version numbers are translated to a file extension.
(so FILE1.TXT;1 becomes FILE1.TXT.1)
What are your client and server operating system?
Phil
Robert Gezelter
Honored Contributor

Re: FTP Questions

Jorge,

Please post the log from the FTP session. It would be helpful to see precisely what transpired.

- Bob Gezelter, http://www.rlgsc.com
Art Wiens
Respected Contributor

Re: FTP Questions