HP3000-L Archives

October 1999, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"BIXBY,MARK (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
BIXBY,MARK (HP-Cupertino,ex1)
Date:
Tue, 26 Oct 1999 18:24:51 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (84 lines)
> -----Original Message-----
> From: Ramasubramaniam Ramani [mailto:[log in to unmask]]
> Sent: Tuesday, October 26, 1999 6:22 AM
> To: [log in to unmask]
> Subject: HELP - is FTP clobbering POSIX files
>
>
> Hello ,
> Could you please double check this ? I hope I am very wrong !
> PLEASE make a copy of the file you are about to test !
>
> In one account create a file under the POSIX name space and
> do a chmod 777
> to be able to read this file from another account.
>
> Log on to a different account . open a ftp session to the
> other account
> (please stay on the same machine). do a get (or an mget) of
> the file you
> created. Please check whether the file made it to the new account and
> whether the file is still in the original account.
>
> Thanks
>
>
>
> This is what happened to me - I think I lost the
> /SPICEDEV/RAMANI/classes111.zip file !
>
> ftp>dir /SPICEDEV/RAMANI/c*
> 200 PORT command ok.
> 150 File: LISTFILE /SPICEDEV/RAMANI/c@,2 opened; data
> connection will be
> opened
>  PATH= /SPICEDEV/RAMANI/
>
>  CODE  ------------LOGICAL RECORD-----------  ----SPACE----  FILENAME
>          SIZE  TYP        EOF      LIMIT R/B  SECTORS #X MX
>
>            1B  BA      800174 2147483647   1     3136  5  *
> classes111
>            1B  BA      800174 2147483647   1     3136  5  *
> classes111.zip
>
>
> 226 Transfer complete.
> 316 bytes received in 0.02 seconds (17.14 Kbytes/sec)
> ftp> mget /SPICEDEV/RAMANI/c*
> 200 PORT command ok.
> 150 File: LISTFILE /SPICEDEV/RAMANI/c@,6 opened; data
> connection will be
> opened
> 226 Transfer complete.
> 62 bytes received in 0.02 seconds (3.56 Kbytes/sec)
> mget /SPICEDEV/RAMANI/classes111? y
> 200 PORT command ok.
> 150 File: /SPICEDEV/RAMANI/classes111 opened; data connection
> will be opened
> File accessed exclusively. (FTPERR 45) ---> ACTUALLY nobody
> else was using
> the file

Actually YOU were using the file.

The problem is that you did an absolute path mget on the same machine as the
source files.  When you say "mget /SPICEDEV/RAMANI/c*"  that's going to read
the files and write them with the same names on the same machine.

I'm guessing that the ftp client first opens the output file for mget, then
sends the individual get request to the server.  Because you're doing
everything on the same machine, the target file has been opened for
exclusive output by the ftp client, and so the ftp server errors out with
FTPERR 45.

What you should have done was:

cd /SPICEDEV/RAMANI
mget ./c*

Because the mget pattern is relative, you won't try to overwrite the
original source files.

- Mark B.

ATOM RSS1 RSS2