[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wput (bug?..)



Ein typischer Fall von: "Das ist kein Bug, das nennt sich Feature"
Also laut rfc soll für jede Kompenente des Pfads zwischen den '/' ein CWD 
ausgeführt werden. Das macht wput nun auch. Einfaches workaround ist 
folgendes:
  wput -d 4067.pdf ftp://SLAVA:SLAVA@192.168.1.44/%2fLSS/
Dann sollte ein CWD /LSS ausgeführt werden.

Gruß
Hagen

Am Mittwoch, 12. Januar 2005 11:54 schrieben Sie:
> Hallo,
>
> ich habe wput für die Datenübertragung auf AS/400 FTP-Server getestet, und
> er scheint das Anfangsverzeichnis nicht richtig zu wechseln - statt (CWD
> LSS sollte da m.M. CWD /LSS stehen) :
>
> D:\>wput -d 4067.pdf ftp://SLAVA:SLAVA@192.168.1.44/LSS/
> Added file `4067.pdf' to queue.
> Added URL `ftp://SLAVA:SLAVA@192.168.1.44/LSS/' to queue.
> processing queue:
> File: `4067.pdf'
> URL : `ftp://SLAVA:SLAVA@192.168.1.44/LSS/'
> PRE_GUESS: local_file: 4067.pdf
> remote_path: LSS        remote_file:  (0)
> POST_GUESS: local_file: 4067.pdf
> remote_path: LSS        remote_file: 4067.pdf
> Searching for skip_entry ftp://SLAVA:SLAVA@192.168.1.44:21/LSS
> --11:47:21-- `4067.pdf'
>     => ftp://SLAVA:xxxxx@192.168.1.44:21/LSS/4067.pdf
> Connecting to 192.168.1.44:21... c_sock: 39c
> initiating timeout connect (300) (39c)
> connected# QTCP at 192.168.1.44.
> [220] 'Connection will close if idle more than 5 minutes.'
> !
> determing local ip_addr
> Local IP: 192.168.1.24
> Logging in as SLAVA ... ---->USER SLAVA
> [331] 'Enter password.'
> [230] 'SLAVA logged on.'
> Logged in!
> previous directory:     target: LSS
> ==> CWD LSS---->CWD LSS
> [250] '"LSS" is current library.'
>  done.
> ==> SIZE 4067.pdf ...---->SIZE 4067.pdf
> [500] 'Subcommand SIZE not valid.'
> failed
> ---->SYST
> [215] ' OS/400 is the remote operating system. The TCP/IP version is
> "V4R4M0".' Operating System (enum): 5
> Portmode: 0
> ==> PASV ---->PASV
> [227] 'Entering Passive Mode (192,168,1,44,20,174).'
> done.
> Remote server data port: 192.168.1.44:5294
> c_sock: 388
> initiating timeout connect (300) (388)
> ==> TYPE A ... ---->TYPE A
> [200] 'Representation type is ASCII nonprint.'
> done
> ==> LIST ... ---->LIST
> [125] 'List started.'
> [250] 'List completed.'
> failed.
> local_fsize: 133120
> target_fsize: 0
> ==> TYPE I ... ---->TYPE I
> [200] 'Representation type is binary IMAGE.'
> done
> Portmode: 0
> ==> PASV ---->PASV
> [227] 'Entering Passive Mode (192,168,1,44,20,176).'
> done.
> Remote server data port: 192.168.1.44:5296
> c_sock: 378
> initiating timeout connect (300) (378)
> ==> STOR 4067.pdf ---->STOR 4067.pdf
> # Characters that are not recognized in file specification are changed to
> #. [150] 'Sending file to member PDF in file #067 in library LSS.'
> done.
> Length: 133,120
> 100%[===================================] 133,120
> [250] 'File transfer completed successfully.'
> 11:47:22 (4067.pdf) - `316.3K/s' [133120]
>
> processing queue:
> ---->QUIT
> [221] 'QUIT subcommand received.'
>
> mit freundlichen Grüßen,
>
> Stanislav Struminski

-- 
Mit besten Grüßen  
 Hagen                      http://itooktheredpill.dyndns.org
                  GPG:D40FD26F  mailto:itooktheredpill@gmx.de 

Attachment: pgp01IwzVnCH9.pgp
Description: PGP signature