| View previous topic :: View next topic |
| Author |
Message |
Schorsch Junior Member

Joined: 05 May 2004 Posts: 4
|
Posted: Wed May 05, 2004 6:42 am Post subject: 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 |
|
| Back to top |
|
 |
Schorsch Junior Member

Joined: 05 May 2004 Posts: 4
|
Posted: Fri May 07, 2004 10:43 am Post subject: 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 |
|
| Back to top |
|
 |
Clo Moderator


Joined: 02 Dec 2003 Posts: 5559 Location: Bordeaux, France
|
Posted: Fri May 07, 2004 12:22 pm Post subject: 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 |
|
| Back to top |
|
 |
Schorsch Junior Member

Joined: 05 May 2004 Posts: 4
|
Posted: Tue May 11, 2004 2:12 am Post subject: |
|
|
Hello,
sorry, can't tell you. I don't know the type, however
the definition string works correct.
Best Regards,
Schorsch |
|
| Back to top |
|
 |
Clo Moderator


Joined: 02 Dec 2003 Posts: 5559 Location: Bordeaux, France
|
Posted: Tue May 11, 2004 10:24 am Post subject: 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 |
|
| Back to top |
|
 |
Schorsch Junior Member

Joined: 05 May 2004 Posts: 4
|
Posted: Wed May 19, 2004 9:57 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
sqa_wizard Power Member


Joined: 06 Feb 2003 Posts: 2004 Location: Germany
|
Posted: Wed May 19, 2004 11:07 am Post subject: |
|
|
Hello Schorsch,
| Quote: | 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 |
|
| Back to top |
|
 |
|