"gundalav" <> wrote:
> Dear expert,
>
> Suppose I have a file created in this way:
>
> ~/MyDir/ $ perl mycode.pl > subdir/the_result.out
Presumably you have lots of files created this way, otherwise this seem
pretty trivial. OTOH, what you show is only capable of making one file,
as it just uses the same name over and over. So I don't think you've
described your problem well or completely.
>
> What I desired to do is to have a
> script that : "automatically delete the files after 10 days they are
> created".
Is "created" important, as opposed to modified or accessed?
The obvious answer to your question doesn't depend on *how* the file was
created, which (combined with your subject line) makes me wonder of you
meant to ask something different than what you did ask.
Is the program supposed to remember what files it created, so that it knows
which ones are elligible for deletion after 10 days?
Xho
--
--------------------
http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB