| Vorheriges Thema anzeigen :: Nächstes Thema anzeigen |
| Autor |
Nachricht |
Schorsch Junior Member

Anmeldungsdatum: 05.05.2004 Beiträge: 4
|
Verfasst am: Mi Mai 05, 2004 6:42 am Titel: FTP server type definition string |
|
|
Hello,
I have a problem defining the correct definition string for an ftp server.
The directory ls output is like this:
| Code: |
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 |
|
| Nach oben |
|
 |
Schorsch Junior Member

Anmeldungsdatum: 05.05.2004 Beiträge: 4
|
Verfasst am: Fr Mai 07, 2004 10:43 am Titel: solved!! |
|
|
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 |
|
| Nach oben |
|
 |
Clo Moderator


Anmeldungsdatum: 02.12.2003 Beiträge: 5663 Wohnort: Bordeaux, France
|
Verfasst am: Fr Mai 07, 2004 12:22 pm Titel: What type? |
|
|
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 !
Kind regards,
Claude
Clo _________________ #31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials |
|
| Nach oben |
|
 |
Schorsch Junior Member

Anmeldungsdatum: 05.05.2004 Beiträge: 4
|
Verfasst am: Di Mai 11, 2004 2:12 am Titel: |
|
|
Hello,
sorry, can't tell you. I don't know the type, however
the definition string works correct.
Best Regards,
Schorsch |
|
| Nach oben |
|
 |
Clo Moderator


Anmeldungsdatum: 02.12.2003 Beiträge: 5663 Wohnort: Bordeaux, France
|
Verfasst am: Di Mai 11, 2004 10:24 am Titel: In the Log--- |
|
|
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 :
- If you have not it, I'll add your string in the Tutorial as "Unknown server, please try and pray… "
Kind regards,
Claude
Clo _________________ #31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials |
|
| Nach oben |
|
 |
Schorsch Junior Member

Anmeldungsdatum: 05.05.2004 Beiträge: 4
|
Verfasst am: Mi Mai 19, 2004 9:57 am Titel: |
|
|
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.
Best regards,
Schorsch |
|
| Nach oben |
|
 |
sqa_wizard Power Member


Anmeldungsdatum: 06.02.2003 Beiträge: 2129 Wohnort: Germany
|
Verfasst am: Mi Mai 19, 2004 11:07 am Titel: |
|
|
Hello Schorsch,
| Zitat: | 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 |
|
| Nach oben |
|
 |
|