LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-16-2012, 02:09 PM   #1
cmosentine
LQ Newbie
 
Registered: Feb 2012
Posts: 14

Rep: Reputation: Disabled
Strange ftp behavior


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.
 
Old 02-16-2012, 02:37 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi cmosentine,

Welcome to LQ!!!

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?
 
Old 02-17-2012, 12:03 PM   #3
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
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.
 
Old 02-17-2012, 12:35 PM   #4
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
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

Maybe that's it.
Cheers, Tom.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange behavior(??) in Samba! bigoli MEPIS 1 06-06-2005 11:43 AM
Very Strange Behavior raysr Mandriva 4 08-31-2004 02:06 PM
qmail's strange behavior Madrinator Linux - Networking 2 10-03-2003 05:30 PM
Strange Behavior andrewb758 Linux - Hardware 5 08-31-2003 02:42 PM
strange behavior abhijit Linux - General 3 07-09-2003 11:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration