This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: fun with your co-workers...
by theorbtwo (Prior) on Nov 09, 2004 at 07:12 UTC

    Going past the fact that this is sick and wrong for the moment, and what he'll do when he finds out what it is...

    What's with the whitespace? You have lines 1, 4, 5, and 14 being nothing but whitespace for no discernable reason, but don't indent lines 16 and 18 to show that they're part of a loop.

    You create a new LWP::UserAgent for every line in /home/steven/error-codes; it would have been much more efficent to do so once, outside of the loop.

    You page him with the same sequence of error codes at the same time every night, which will probably be a bit suspicious after the first couple nights.

    You're creating a lot of billable (likely at overtime) hours for your co, and management isn't going to be happy with that. Add that to the fact that the guy they apparently like quite a bit more then you is going to call for you to be fired, killed, and then sued, you likely won't work there anymore.

    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Re: fun with your co-workers...
by ysth (Canon) on Nov 09, 2004 at 03:23 UTC
    I would encourage you to work out your frustration with your co-worker by reading Enter the Cow-orker, not sabotaging his pager.
Re: fun with your co-workers...
by Fletch (Bishop) on Nov 09, 2004 at 16:36 UTC

    There's "practical joke" and then there's "being a frelling jerk who's likely to get the dren pounded out of them".

    A couple of jobs back I set up something kinda similar which set the LCD job status line on the HP printers throughout the company to randomly display humorous messages and the company's stock price. But that didn't get anyone up at 0-dark-thirty and it didn't interfere with anyone's job responsibilities.

    Well . . . I did finally shut it off after the IT people got tired of having to deal with people from the marketing department (and this is absolutely true :) calling that the printer "wasn't working" because PAPER TOO SPICY, or that the printer was experiencing a GRAPE JAM.

      Now that's pretty funny; I don't know what I'd think if I ever saw a printer telling me that I was feeding it paper that was too spicy :) You've gotta wonder what the IT people thought, having someone on the phone telling them that their printer is having a spice problem!

Re: fun with your co-workers...
by talexb (Chancellor) on Nov 09, 2004 at 13:35 UTC

    .. and good luck with your upcoming job search!! :)

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Re: fun with your co-workers...
by itub (Priest) on Nov 09, 2004 at 03:40 UTC
    You are going to have a hard time earning respect here by doing such a thing, and that's even without getting into the deficiencies in the code you posted.
Re: fun with your co-workers...
by nimdokk (Vicar) on Nov 09, 2004 at 13:42 UTC
    I must say, this is pretty low to do to someone.

    That said, when we were training our new person for on-call, I did arrange something like this to happen becuase we couldn't say when a real error would take place. Although after the first night and several legitimate errors, we stopped.

    To be truely BOFH-ish, I suppose you could set it so that it would send the page out at random times each night, instead of the same time every night.

Re: fun with your co-workers...
by insensate (Hermit) on Nov 09, 2004 at 21:02 UTC
    I'm sure you want to know why most of this community doesn't share your humor regarding this post.

    Several of us, in some capacity, have administrated in 24x7 environments and are too familiar with the piercing shriek of a pager during late/early hours.

    We know how it obliterates any concept of free-time, and how it interrupts and contributes stress to our lives; and our families as well. None of us take it lightly, and tend not to wish it on anyone else.

Re: fun with your co-workers...
by Anonymous Monk on Nov 09, 2004 at 14:36 UTC
    Paging without a username/password is the company's fault for putting such a service up there. I suppose if he gets ticked off enough at you he can ask what IP submitted the pages... watch out.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: fun with your co-workers...
by punch_card_don (Curate) on Nov 10, 2004 at 15:18 UTC
    The worst I ever did was in the early eighties, programming a silicon wafer probing robot for a wafer fab - included a subroutine that would, about once a month, blank out the controller screen and display something juvenile (since that's what I was back then) like "This incredible software developed by..." for about 5 seconds. Without loss of data, of course. No harm done.

    Context is everything. If the target of the above prank is a good buddy and they have a history and an understanding about practical jokes, then , yeah, it's funny. If it's just an innocent colleague, then you've definitely crossed way over the line.

Re: fun with your co-workers...
by davidj (Priest) on Nov 14, 2004 at 12:46 UTC
    As a rule, I do not believe that anyone should be banned from the Perl Monks community. However, in this case, I do believe I would make an exception. We really do not need people like this "contributing" to the community. But then, this is just my opinion.