LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-30-2003, 09:41 PM   #1
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
perl, Net::Ftp, and Novell file modification time


Hi everybody, I have a little bit of problem with my perl script: script to do - connect over ftp from UNIX to Novell drive get a snapshot of a particular directory on Novell and get only files modified in a particular period of time (from the last time script was run to the current time), I am having no problem listing files on Novell side in UNIX style (permissons, group, owner, size and modification time), but there is a culprit, files that are a bit then a year old are interpreted by UNIX as files that were created this year, confused? Here's an example, you know that older files get modification time in format Month Date Year and files that are a year old or younger get modification time Month Date Time, so since Net::Ftp is unaware of that files that were created exactly a year ago are 1 year old, when UNIX interprets them they show up as of current year, hence I got some files that are listed as Feb 08 23:44 2002 show up as files created as of Feb 08 23:44 2003, it is none of the problem b/c I use UnixDate from Date::Manip to count seconds of a file life, so if it is more than current time it gets disregarded, but there are some files that were created in the same month as today but a year ago and they show up as current, next month (February) they will revert to the old format Jan 11 2002, but today they show up as Jan 11 22:09, on Novell side they show up as Jan 11 22:09 2002, but when these files are looked up buy Net::Ftp->dir() they get modification time Jan 11 22:09. So here is the problem I am bashing my head against, how the hell do I distinguish these files as last years not as recent ones?
Thank you in advance, hope the problem is clear.
Damn ...
 
  


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
Get file modification date/time in Bash script cmfarley19 Programming 16 04-15-2015 06:25 PM
time stamp for file modification youngstorm Linux - Newbie 2 11-01-2005 03:46 PM
Urgent Help: Perl FTP Script Using NET::FTP xboxter Programming 8 05-16-2005 06:57 PM
Warning: File 'sendmail.cf' has modification time in the future G-Rad Linux - Newbie 0 03-06-2004 11:09 PM
perl and Net::FTP question Tomasfuego Programming 0 12-17-2003 08:13 AM

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

All times are GMT -5. The time now is 04:46 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