Questionmark instead of date in FTP-pane

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
dejan.colja@skb.si
Junior Member
Junior Member
Posts: 4
Joined: 2015-06-03, 09:28 UTC

Questionmark instead of date in FTP-pane

Post by *dejan.colja@skb.si »

TC is installed on PC with WIN7 (64 bit)
--
With FTP I am connected to Unix AIX 7.1 ... and I'am not able to see ALL the dates. There is questionmark instead of some dates, and it depends on months of that dates. For example there is date for dates in June and questionmark for May dates.
If I go to properties .. there are correct dates for all the files

-rw-r--r-- 1 oracle oinstall 87231 22 maj 13:45 par_sbt_backup_150522_1200.log
-rw-r--r-- 1 oracle oinstall 84498 23 maj 13:40 par_sbt_backup_150523_1200.log
-rw-r--r-- 1 oracle oinstall 103310 24 maj 13:36 par_sbt_backup_150524_1200.log
-rw-r--r-- 1 oracle oinstall 69584 25 maj 11:10 par_sbt_backup_150525_0908.log
-rw-r--r-- 1 oracle oinstall 111990 26 maj 13:49 par_sbt_backup_150526_1200.log
-rw-r--r-- 1 oracle oinstall 92690 27 maj 13:45 par_sbt_backup_150527_1200.log
-rw-r--r-- 1 oracle oinstall 70196 28 maj 13:35 par_sbt_backup_150528_1200.log
-rw-r--r-- 1 oracle oinstall 104175 29 maj 13:46 par_sbt_backup_150529_1200.log
-rw-r--r-- 1 oracle oinstall 86294 30 maj 13:42 par_sbt_backup_150530_1200.log
-rw-r--r-- 1 oracle oinstall 107123 31 maj 13:38 par_sbt_backup_150531_1200.log
-rw-r--r-- 1 oracle oinstall 66651 1 jun 09:02 par_sbt_backup_150601_0647.log
-rw-r--r-- 1 oracle oinstall 2557 2 jun 12:59 par_sbt_backup_150602_1259.log
-rw-r--r-- 1 oracle oinstall 57820 2 jun 15:08 par_sbt_backup_150602_1301.log

Any suggestion ..

Regards Dejan
User avatar
Dalai
Power Member
Power Member
Posts: 10035
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

For which of the above files do you see a correct date?

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
dejan.colja@skb.si
Junior Member
Junior Member
Posts: 4
Joined: 2015-06-03, 09:28 UTC

Post by *dejan.colja@skb.si »

I can see correct date for JANUAR, FEBRUAR, APRIL, ..JUNE - files
For All files from MAY - there is questonmark instead of date ..
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

It looks like server returns localized month names and TC can't guess that "maj" means "may". You'll have the same problem (based on Google Translator) with August and October.

The best solution would be if your server supported MSLD command for file listing, because it uses standardized format, but I guess it doesn't. The problem with LIST is that it does not have any standard format at all. There are few common ones, so parsing them mostly works. But localized month names are way beyond that. I don't see a way how TC could recognize them in all possible languages.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You need to define your own server type, like this: Ctrl+F, then "New connection", give a server name and choose "Define new server".
Now connect to the server. Total Commander will show a dialog box where you can define your own server type. You can start with a predefined type, e.g. Unix, and then adapt it to your needs. You
can get a description of the placeholders with F1 in that dialog. It allows to define 3 character month names like this:
TTT=12 month names with 3 letters each
Author of Total Commander
https://www.ghisler.com
dejan.colja@skb.si
Junior Member
Junior Member
Posts: 4
Joined: 2015-06-03, 09:28 UTC

Post by *dejan.colja@skb.si »

Thank You Ghisler !!

I almost succedded to parse my FTP listing ..
-rw-r--r-- 1 oracle oinstall 19067 9 maj 2012 dbupdiag.sql

with definiton string
pppppppppp SSSSSSSSSSS DD TTT=janfebmaraprmajjunjulavgsepoktnovdec UUUUU n*


but this parser is by my opinion still little bit bugy ...
In this case there is wrong parsing of YEAR --- date is correct but year is always 2000 ...
Same problem appeares even without TTT=.......

If I changed string "DD TTT=janfebmaraprmajjunjulavgsepoktnovdec UUUUU" --> "DD TTT=janfebmaraprmajjunjulavgsepoktnovdecUUUUU"
i.e. when I remove blank between TTT and UUUUU than parsing of all dates was OK ..

BUT ..

another problem arised .. directory/file name are parsed with leading blank ..
Trial - error princip leds me to following string .. (with two blanks between UUUUU and n*)

pppppppppp SSSSSSSSSSS DD TTT=janfebmaraprmajjunjulavgsepoktnovdecUUUUU n*

and now it seems to be OK ..
Thanks again and regards .
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Your detect string looks OK. Unfortunately there was no sample listing from your server with a different year, it was all with current files. They appear correctly as 2015 - TC will just use the current year in this case.

Maybe you can COMBINE the two detect strings - TC accepts more than one detect string, and will use a later one if the first has errors.
Author of Total Commander
https://www.ghisler.com
dejan.colja@skb.si
Junior Member
Junior Member
Posts: 4
Joined: 2015-06-03, 09:28 UTC

Post by *dejan.colja@skb.si »

Here is listing of different current and older dates

[face=courier]-rw-r--r-- 1 oracle oinstall 13550 9 maj 23:26 dd.txt
-rw-r--r-- 1 oracle oinstall 173967 8 sep 2010 drop_priv_syn.log
-rw-r--r-- 1 oracle oinstall 490 9 sep 2010 drop_priv_syn.sql
-rwxr--r-- 1 oracle oinstall 399 14 feb 2011 env_dev.sh
-rwxr--r-- 1 oracle oinstall 390 17 okt 2010 env_dtb.sh
-rwxr--r-- 1 oracle oinstall 391 17 okt 2010 env_test.sh
-rwxr--r-- 1 oracle oinstall 399 1 mar 2011 env_xtr.sh
-rw-r--r-- 1 oracle oinstall 178 4 jul 2012 glap_roles.log
-rw-r--r-- 1 oracle oinstall 187745 8 dec 2009 gr_all_grant.lis[/face]


As I said, I succedded to parse them all with one string --
"Template1=pppppppppp SSSSSSSSSSS DD TTT=janfebmaraprmajjunjulavgsepoktnovdecUUUUU n*"

Thanks again for hint and all help !!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You can try the version with the space in the upper edit box, and the one without the space in the lower one (or reversed).
Author of Total Commander
https://www.ghisler.com
Post Reply