This will work on UNIX but I recommend against this because it is not
portable to other platforms, and there inefficiency in this in that it is
not native perl.  I recommend using the unlink command in perl which will be
portable across platforms and for a large number of files/servers it will
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 file


> Hi,
>
> Usually, one uses the following command (from the shell prompt)
>
> "rm /path/to/file/filename"
>
> To supress the confirmation message, use:
>
> "rm -f /path/to/file/filename"
>
> To delete recursively (i.e. a directory), and make it verbose to the
screen:
>
> rm -rfv /path/to/directory
>
> Does that help.
>
> Of course, from a perl script, you can either use:
>
> system("/bin/rm -f /path/to/filename");
>
> or
>
> `rm -f filename`
>
> I hope that helps,
> Regards,
>
> Thomas Adam  (VI form student)
> Linux Co-ordinator at the Purbeck School (Network Support)
> Wareham,
> Dorset,
> UK
> ----- Original 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 sender and the intended recipient(s) of the message. If you are not
an intended recipient and/or have received this message in error, kindly
disregard the content of the message and return it to the original sender.
>
> If you have any complaints about this message please reply to:
>        [EMAIL PROTECTED]
>
> The Purbeck School E-Mail server running:
>        users.purbeck.dorset.sch.uk
>


Reply via email to