Hi folks!

Of relevance her would be what OS you are on as well.

Windows
Solaris
Linux
Mac
Other?

Why? Because different OS's treat this differently. Anyone here ever tried
to get back a deleted file on a Unix box? Not a very fun prospect.

If you are doing this on some *nix box, do not worry too much, since trying
to get back a file that's been deleted on such an OS is _extremely_
difficult to get back in any case. Since I take it you are considering the
issues if someone is "undeleting" the file just after you have deleted it,
right?

This is not really related to Perl, I know, but I thought it would be of
general interest to the public anyhow.

PS. Yes, it _may_ be possible to "recover" a deleted file on *nix boxes as
well, but it usually means poking around directly in the fs. It's not
pretty, and the chances to get crap back is _very_ big. Even on a journalled
fs.

Now, back to reality, pls! ;)


Best Regards

Anders Holm
Critical Path Technical Support Engineer
----------------------------------------------------------------------
Tel USA/Canada: 1 800 353 8437
Tel Worldwide:  +1 801 736 0806
E-mail:         [EMAIL PROTECTED]
Internet:       http://support.cp.net


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Sudarsan Raghavan
Sent: 28 May 2002 12:45
To: Langa F. Kentane
Cc: [EMAIL PROTECTED]
Subject: Re: Shredding a file


"Langa F. Kentane" wrote:

> Greetings,
> How would I go about shredding a file with perl, for instance, I have a
> script opening a time file, writing something in there and then deleting
> the
> temp file when execution is done. How would I go about securely deleting
> the
> temp file afterwards so that prying eyes can't read it afterwards?

I am not sure I understand the question correctly, do you want to
delete the file only when the execution finishes. If so add this to
your code
END {
    unlink ($your_temp_file) or "Error statement : $!\n";
}
This block will only be executed when the code execution
finishes.

>
>
> Any pointers would be greatly appreciated.
>
> Regards
>
> LK
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to