Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: PM Confessional

by hesco (Deacon)
on Feb 12, 2011 at 04:23 UTC ( #887727=note: print w/ replies, xml ) Need Help??


in reply to PM Confessional

My last night on a job seven years ago, cleaning up the desktop I used next to the rack which ran the operation, I used an ill advised `rm -rf`, which like the OP's took too long to run. By the time I took note of what I had done and pounded on Control-C for a while, I had done some damage to my home directory. Fortunately it was something of a mess and I had mostly deleted large cache's buried in .dot files at the beginning of the alphabet, without doing too much damage to the archives I was leaving for those who were to come later.

One of the guys who helped to set up our systems in that office once advised me to never be root after midnight. I also have learned to never run a DELETE FROM, until I had run a SELECT FROM using the same WHERE clause.

I also have had an awful experience asking a script to `rm files`. My path on that command was programmatically built, and a bug in that code did some damage. I'm pretty cautious now about letting a script use `rm` for any reason, particularly if any wildcards are involved.

-- Hugh

if( $lal && $lol ) { $life++; }
if( $insurance->rationing() ) { $people->die(); }


Comment on Re: PM Confessional

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://887727]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-09-21 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls