Re: Deleting a file while other script still appending to

2008-02-07 Thread Chas. Owens
On Feb 7, 2008 5:54 AM, Mahdi A Sbeih <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a script that logs activities to a txt log file. I noticed that > when deleting the file from another window or shell, the script stops > writing to the file. I was expecting something like the unix shell, > which

RE: deleting a file

2002-05-31 Thread Shishir K. Singh
perldoc -f unlink -Original Message- From: Shishir K. Singh Sent: Friday, May 31, 2002 6:14 PM To: Lance Prais; Perl Subject: RE: deleting a file use unlink perl -f unlink -Original Message- From: Lance Prais [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 6:10 PM To

RE: deleting a file

2002-05-31 Thread Shishir K. Singh
use unlink perl -f unlink -Original Message- From: Lance Prais [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 6:10 PM To: Perl Subject: deleting a file Is it possible to delete a file or remove all the data using a perl command? I am using perl on windows, can you include dos

Re: deleting a file

2001-07-15 Thread Teresa Raymond
Dear Japhy, Thank you! I thought I had to open the directory then delete the file to use unlink. Thank you again. >On Jul 15, Teresa Raymond said: > >>opendir (ADS, "$filepath/") || die "Can't open directory\n"; >>if (-e $file) >>{ >> unlink "$file"; >>} > >Why are you opening a directory

Re: deleting a file

2001-07-15 Thread Jeff 'japhy' Pinyan
On Jul 15, Teresa Raymond said: >opendir (ADS, "$filepath/") || die "Can't open directory\n"; >if (-e $file) >{ > unlink "$file"; >} Why are you opening a directory, but not using it? At first, I'd think you meant to just say: unlink "$filepath/$file" if -e "$filepath/$file"; But you sa