Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP server type definition string

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
Schorsch
Junior Member
Junior Member


Joined: 05 May 2004
Posts: 4

PostPosted: Wed May 05, 2004 6:42 am    Post subject: FTP server type definition string Reply with quote

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
View user's profile Send private message
Schorsch
Junior Member
Junior Member


Joined: 05 May 2004
Posts: 4

PostPosted: Fri May 07, 2004 10:43 am    Post subject: solved!! Reply with quote

Hi,

found the solution after checking the help again Smile
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
View user's profile Send private message
Clo
Moderator
Moderator


Joined: 02 Dec 2003
Posts: 5559
Location: Bordeaux, France

PostPosted: Fri May 07, 2004 12:22 pm    Post subject: What type? Reply with quote

2Schorsch
Smile 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 !

Mr. Green Kind regards,
Claude
Clo
_________________
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Schorsch
Junior Member
Junior Member


Joined: 05 May 2004
Posts: 4

PostPosted: Tue May 11, 2004 2:12 am    Post subject: Reply with quote

Hello,

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

Best Regards,
Schorsch
Back to top
View user's profile Send private message
Clo
Moderator
Moderator


Joined: 02 Dec 2003
Posts: 5559
Location: Bordeaux, France

PostPosted: Tue May 11, 2004 10:24 am    Post subject: In the Log--- Reply with quote

2Schorsch
Smile 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:
215 UNIX Type: L8

- If you have not it, I'll add your string in the Tutorial as "Unknown server, please try and pray… " Razz

Mr. Green  Kind regards,
Claude
Clo
_________________
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Schorsch
Junior Member
Junior Member


Joined: 05 May 2004
Posts: 4

PostPosted: Wed May 19, 2004 9:57 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
sqa_wizard
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2004
Location: Germany

PostPosted: Wed May 19, 2004 11:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group