FTP server type definition string

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Schorsch
Junior Member
Junior Member
Posts: 4
Joined: 2004-05-05, 07:31 UTC

FTP server type definition string

Post by *Schorsch »

Hello,

I have a problem defining the correct definition string for an ftp server.
The directory ls output is like this:

Code: Select all

  size          date       time       name
--------       ------     ------    --------
      10    Apr-22-2004  09:27:43   bin               <DIR>
     293    Apr-22-2004  12:05:50   test.conf
       0    Jan-01-1970  00:04:16   tmp               <DIR>
   13034    Jan-01-1970  01:07:24   myfile.txt
The only difference in the output between files and directories is an appended <DIR>

I tried to use the following:
Template1=S* TTT DD YYYY hh mm ss n* d
Template2=d= S* TTT DD YYYY hh mm ss n* d

Current observations:
- Template1 shows all elements as files, so the second Template rule seems not to be used. File access works already with Template1 alone.
- Adding Template2 doesn't change anything.
- If I use Template2 exclusively, everything is interpreted as directory.

Can someone help?
Thanks in advance,
Schorsch
Schorsch
Junior Member
Junior Member
Posts: 4
Joined: 2004-05-05, 07:31 UTC

solved!!

Post by *Schorsch »

Hi,

found the solution after checking the help again :)
Strictly aligning with the original output and avoiding * does what I needed:
Template1=SSSSSSSS TTT MM YYYY hh mm ss nnnnnnnnnnnnnnnnnn d

So here you have another example for the definition strings.

Schorsch
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

What type?

Post by *Clo »

2Schorsch
:) Hello!
• Nice, that merits to be added in the Help (and Tutorial).
* Please, could you tell us what is the type of server in which that works ? Thanks !

:mrgreen: Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Schorsch
Junior Member
Junior Member
Posts: 4
Joined: 2004-05-05, 07:31 UTC

Post by *Schorsch »

Hello,

sorry, can't tell you. I don't know the type, however
the definition string works correct.

Best Regards,
Schorsch
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

In the Log---

Post by *Clo »

2Schorsch
:) Hello !
• In the FTP-log file (you must set it in Configuration >> Options >> FTP, you don't get one by default…), you might see a row like that :

Code: Select all

215 UNIX Type: L8
- If you have not it, I'll add your string in the Tutorial as "Unknown server, please try and pray… " :P

:mrgreen:  Kind regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Schorsch
Junior Member
Junior Member
Posts: 4
Joined: 2004-05-05, 07:31 UTC

Post by *Schorsch »

Hello Clo,

I think it's a proprietary servertype for testing, so if you like to add the string to the tutorial put it as 'unknown server' as proposed.

:wink: Best regards,
Schorsch
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Hello Schorsch,
Strictly aligning with the original output and avoiding * does what I needed:
Template1=SSSSSSSS TTT MM YYYY hh mm ss nnnnnnnnnnnnnnnnnn d
as far as I can see, your string is still wrong (you used month twice)

13034 Jan-01-1970 01:07:24 myfile.txt

results in :
SSSSSSSS TTT DD YYYY hh mm ss nnnnnnnnnnnnnnnnnn $d

or even better :

$S* TTT DD YYYY hh mm ss n* $d
#5767 Personal license
Post Reply