Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick
brad

Save our hard drive

I wrote a script to make one of our test machine's hard drive activity light do S.O.S. in Morse Code. (with the accompanying grinding noise)

Ahhh, fun with raw(8) and pack("p", ...) to align Perl scalars to blockdev --getbsz -sized boundaries in memory.

I'd post the script but I don't want to be responsible for you destroying your filesystems on accident.

(P.S. This has practical value, except for the Morse Code part....)
Tags: perl, tech
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 9 comments