I have a script that parses a website for data and prints out some HTML. I call this script every 15 minutes via cron. I want to modify it so that it will send me an IM when it completes but I ran into some problems:

First, I included Net::AIM in the script itself so it would connect send me the HTML and disconnect. GREAT! But, of course, doing this every 15 minutes got me locked out of AOL (at least temporarily)

So I thought it would be better to start up an AOL bot that is always running (eventually could respond to IM from me as well.) But then how do I get the data from my script that is running every 15 minutes from cron? The length of time it takes for this script to run is varied so I'd rather not just sleep 900 and I'd like to always run every 15 minutes.

I don't really want to dump it to a file and read in the file, I want it to be more expansive than that (maybe even support multiple users eventually which would require I send a username and the message to my AIMbot) I thought about opening a socket, but that seemed stupid as I'm on the same machine. LOL... I also thought about forking one of the processes, but I'm not sure what that means :-) or if it would do any good because I would again lose control of my cron start times

So is there a relatively easy way to do this that I'm missing?


In reply to Net::AIM with another script? by hoopsbwc34

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.