RE: How to delete a file from the file system

2003-10-23 Thread Bakken, Luke
H. Look at "perldoc -f unlink" > -Original Message- > > Hi, > > Is there any module which has methods that can be used to > delete a file from the filesystem in the > windows NT environment. > > Thanks in Advance > Chinku -- To un

How to delete a file from the file system

2003-10-23 Thread Chinku Simon
Hi, Is there any module which has methods that can be used to delete a file from the filesystem in the windows NT environment. Thanks in Advance Chinku __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- To

Re: trying to delete a file if >= 1 day old

2003-07-17 Thread John W. Krahn
Jenda Krynicky wrote: > > From: "John W. Krahn" <[EMAIL PROTECTED]> > > perldoc -f -C > >-M Age of file in days when script started. > >-A Same for access time. > >-C Same for inode change time. > > > > > > In *nix files do not have a

Re: trying to delete a file if >= 1 day old

2003-07-17 Thread Jenda Krynicky
From: "John W. Krahn" <[EMAIL PROTECTED]> > perldoc -f -C >-M Age of file in days when script started. >-A Same for access time. >-C Same for inode change time. > > > In *nix files do not have a creation time. You probably want to us

RE: trying to delete a file if >= 1 day old

2003-07-17 Thread Tony Esposito
From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 11:54 AM To: [EMAIL PROTECTED] Subject: Re: trying to delete a file if >= 1 day old Tony Esposito wrote: > > Fellow Perl neophytes ( and non-neophytes), Hello, > I need a little clarification.

Re: trying to delete a file if >= 1 day old

2003-07-17 Thread John W. Krahn
Tony Esposito wrote: > > Fellow Perl neophytes ( and non-neophytes), Hello, > I need a little clarification. I am trying to remove files that are > greater that 24 hours old. The code snippet below is in a 'while' loop that > steps through a directory, yet it seems not to work - no fil

RE: trying to delete a file if >= 1 day old

2003-07-17 Thread Tony Esposito
enior Programmer Analyst --- WGO [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 11:32 AM To: Tony Esposito; [EMAIL PROTECTED] Subject: RE: trying to delete a file if >= 1 day old Tony Esposito wrote: > Fellow Perl neophytes ( and non-neophytes), > I need a little clarificat

RE: trying to delete a file if >= 1 day old

2003-07-17 Thread Tony Esposito
m: Bob Showalter [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2003 11:31 AM To: Tony Esposito; [EMAIL PROTECTED] Subject: RE: trying to delete a file if >= 1 day old Tony Esposito wrote: > Fellow Perl neophytes ( and non-neophytes), > I need a little clarification. I am trying t

RE: trying to delete a file if >= 1 day old

2003-07-17 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Tony Esposito wrote: > Fellow Perl neophytes ( and non-neophytes), > I need a little clarification. I am trying to remove files that are > greater that 24 hours old. The code snippet below is in a 'while' > loop that steps through a directory, yet it seems not to work - no > files are remov

RE: trying to delete a file if >= 1 day old

2003-07-17 Thread Bob Showalter
Tony Esposito wrote: > Fellow Perl neophytes ( and non-neophytes), > I need a little clarification. I am trying to remove files that are > greater that 24 hours old. The code snippet below is in a 'while' > loop that steps through a directory, yet it seems not to work - no > files are remov

trying to delete a file if >= 1 day old

2003-07-17 Thread Tony Esposito
Fellow Perl neophytes ( and non-neophytes), I need a little clarification. I am trying to remove files that are greater that 24 hours old. The code snippet below is in a 'while' loop that steps through a directory, yet it seems not to work - no files are removed no matter what their 'age'

Re: to delete a file

2001-06-21 Thread Bradford Ritchie
t; @ARGV.""; ++$i) { > if (-e $ARGV[$i]) { > unlink ("$ARGV[$i]"); > } > else { > print "File $ARGV[$i] does not exist!\n"; > } > } > > ----- Original Message - > From: "Stéphane JEAN BAPTISTE" <[EMAIL PROTECTED]> > To: "PERL" <[EMAIL PROTECTED]> > Sent: Thursday, June 21, 2001 10:03 AM > Subject: to delete a file > > > > > How can I delete a file ? > > thanks > >

Re: to delete a file

2001-06-21 Thread Chris Hedemark
run faster with less resource overhead. - Original Message - From: "n6tadam" <[EMAIL PROTECTED]> To: "Stéphane JEAN BAPTISTE" <[EMAIL PROTECTED]>; "PERL" <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 10:04 AM Subject: Re: to delete a

Re: to delete a file

2001-06-21 Thread Chris Hedemark
]"); } else { print "File $ARGV[$i] does not exist!\n"; } } - Original Message - From: "Stéphane JEAN BAPTISTE" <[EMAIL PROTECTED]> To: "PERL" <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 10:03 AM Subject: to delete a file How can I delete a file ? thanks

Re: to delete a file

2001-06-21 Thread Nigel Wetters
To delete a file: unlink($filename) or die "can't delete $filename:$!\n"; To delete lots of files: unlink(@filenames) == @filenames or die "couldn't unlink all of @filenames: $!\n"; To delete a folder: use File::Path; rmtree($directory); >>> Stéphane JEA

Re: to delete a file - That's OK

2001-06-21 Thread Stéphane JEAN BAPTISTE
It's allright! thank you Stéphane JEAN BAPTISTE a écrit : > How can I delete a file ? > > thanks

Re: to delete a file

2001-06-21 Thread n6tadam
MAIL PROTECTED]> Sent: Thursday, June 21, 2001 3:11 PM Subject: Re: to delete a file > On Thu, Jun 21, 2001 at 03:04:21PM +0100, n6tadam ([EMAIL PROTECTED]) spew-ed forth: > > Hi, > > > > [snip] > > > > > Of course, from a perl script, you can either use

Re: to delete a file

2001-06-21 Thread Kevin Meltzer
On Thu, Jun 21, 2001 at 03:04:21PM +0100, n6tadam ([EMAIL PROTECTED]) spew-ed forth: > Hi, > [snip] > > Of course, from a perl script, you can either use: > > system("/bin/rm -f /path/to/filename"); > > or > > `rm -f filename` Don't do that. Just use unlink() perldoc -f unlink Cheers, K

Re: to delete a file

2001-06-21 Thread n6tadam
l Message - From: Stéphane JEAN BAPTISTE <[EMAIL PROTECTED]> To: PERL <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 3:03 PM Subject: to delete a file How can I delete a file ? thanks Please note that the content of this message is confidential between the original s

RE: to delete a file

2001-06-21 Thread Yacketta, Ronald
unix: rm filename winblows: del filename oh wait, do you mean in perl ;) (wise a$$ arent I?) perldoc -f unlink > -Original Message- > From: Stéphane JEAN BAPTISTE > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 21, 2001 10:03 AM > To: PERL > Subject

Re: to delete a file

2001-06-21 Thread victor
try the unlink command. Stéphane JEAN BAPTISTE wrote: > How can I delete a file ? > > thanks

to delete a file

2001-06-21 Thread Stéphane JEAN BAPTISTE
How can I delete a file ? thanks