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