LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack 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, Ubuntu, SLES, CentOS
Posts: 1,674

Rep: Reputation: 300Reputation: 300Reputation: 300Reputation: 300
@ 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
Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 11.4
Posts: 970

Rep: Reputation: 184Reputation: 184
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: 172

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 05:29 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration