ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am scratching my head over a strange ftp issue (working on my bash script). I am connecting from a SLES10 sp4 server via ftp to two MS ftp servers running under XP. Everything on the MS XP boxes is identical as far as settings go (stock IIS/ftp install).
Here is the strange part. After opening an ftp session on each XP box, a ls command lists the remote files in two slightly different formats:
-rwxrwxrwx 1 owner group 123456 Dec 16 2011 1001.mp3
-rwxrwxrwx 1 owner group 123456 Dec 16 13:45 1001.mp3
Note the difference; year vs time. I have double checked both XP machines and both are set to report as UNIX.
Anyone know what could be causing this? Thanks, Chris.
FTP displays date and time on the basis of source settings (setting on FTP server). Did you check the regional date/time format settings on your XP machines?
Did you try to access MS ftp servers from any other machine? Do you get the same results?
On Linux the entry for the --time-style may have two defined formats: for non-recent and recent files. It looks line in the second case a dedicated format for the recent files was defined. Maybe it can be set somewhere in the IIS too.
usually, when the file is from "this year", the time is displayed, if it's older, the year instead.
e.g.
File from 2011-12-16
-rwxrwxrwx 1 owner group 123456 Dec 16 2011 1001.mp3
File from 2012-12-16
-rwxrwxrwx 1 owner group 123456 Dec 16 13:45 1001.mp3
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.