Solved

FTP DIR list with and without Year and/or Time

Posted on 2000-03-03
3
482 Views
Last Modified: 2008-03-03
I use FTP sessions to a UNIX box to capture the Date/Time stamp of files for a monitoring application.  I use a DIR list which I belive is similar to an ls -l command.  UNIX for some reason gives me the Year if the file is older than I think 6 months and gives me the time if the file is younger than 6 months old.  This is causing processing problems with this application for year end processing and times when my monitoring system thinks it is just before midnight and the other system thinks it is just after midnight. (Due to systems being out of synch with their dates)

My question is this, do all or most unix system function this way (Showing time or year in the dir list)?
 And do they all use 6 months as the determination to display the time or year?
0
Comment
Question by:louy
3 Comments
 

Accepted Solution

by:
sivaran earned 100 total points
ID: 2581537
Yes all the unix m/c do give the time format in 'month date year' for
files which are > 6 months old.   Files  modified within six months show
`month date time'.  
0
 

Author Comment

by:louy
ID: 2581597
Is it 180 days they use or 182 or 183 for 1/2 of a year?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2586555
If you've got login privs on the remote (as opposed to anon ftp access) there are better, less ambiguous, ways to get the file dates. As to how the data/no date determination is done, well it depends on what ftp server is in use. I don't think it's documented for any of the servers (at least I've never seen such documentation).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best way to handle awk return value 6 66
change HISTFILE for root user on AIX 3 70
reinstall 1 70
problem creating new luks volume on new VM disk 5 77
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now