Re: Handling OLD files



In article
<f535c762-80c9-4b69-b04f-f7fe399b9591@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Anders <anders.u.persson@xxxxxxxxx> wrote:

Hi!
I am looking for a way of moving files older than a date,
I am need this in a script for moving/erase old files from a
production machine
Any tips where to read more about this i gratefull, i can't find any,
(it is on a Windows server) and i would like to stick to PERL standard
package
(ActiveState) if it is possible

Look at Perl's stat function (perldoc -f stat), which gives you file
modification times, and also look at the file test operators -M, -A,
and -C (see perldoc -f -X), which return file "ages" in floating-point
days.

--
Jim Gibson

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
.



Relevant Pages

  • Re: Cannot allocate memory when using os.spawn for moving files
    ... A> I have a problem moving files from my local harddrive to a NFS share using ... A> a Python script. ... So apparently you have too many processes running or you have too little ...
    (comp.lang.python)
  • Re: QFE Patch Update
    ... Robert ... >Its impossible to build a scriptable exe for all devices... ... >> better than having to script out moving files, reg entries, ...
    (microsoft.public.windowsxp.embedded)
  • Re: Problem getting cgi script to work with apache?
    ... Yes I'm sorry I actually had that in the script and took it out to ... server. ... noticed similar problems going the other way, moving files to the BSD ...
    (Fedora)
  • Handling OLD files
    ... I am looking for a way of moving files older than a date, ... I am need this in a script for moving/erase old files from a ... (ActiveState) ...
    (perl.beginners)