On Tuesday 20 March 2001 06:37, you wrote:
>
> > Ah, be easy on yourself! We all have stories we could tell (I'm pretty
> > sure) of the 'ohno-second's we've had (like the time I did rm -rf * from
> > a subdir that just HAPPENED to have my windows partition mounted below
> > it!)
You make it sound like it was a bad thing to blow away Windoze #;-D
I think my best 'heart-stopper' was many years ago when I wrote a
script to do various things, including delete a load of trash from
a certain directory on the server on a weekly basis.
I tested it, and it worked fine.
So, I installed it on every server in the company (twelve boxes on a WAN
covering a 200 mile radius).
Turned out that in my haste to get the script written/rolled out, I had
forgotten that four of the sites did not use/have the directory that the
script deleted.
The net result was that when the script attempted to cd to that
directory on those servers, obviously the cd failed, so it stayed in
the root directory. Not the best place to be when the next command is
rm -r *
Ouch...
Regards,
Ozz.