i dont want any other program to trigger it i want it to trigger itself to run. is this possible? and if so, how??

Have it run as a cron job, or have a separate program run as a daemon and activate it when required.

I don't usually ask these things (mostly because I don't care) but I'm curious, could you explain what the purpose of the program is? I can't see this being for malicious purposes, because even the most primitive of script kiddies would realize the flaws in this approach. If it's just for experimentation, you should choose a less destructive task.

Look at this post's reputation and current replies, many have already made their ignorant judgements. If you provide some more information I can probably help you out, or at least suggest a more educational alternative.

Cheers.

P.S. A note to all those who worry about these things - take another look. If some primitive self-replicating Perl source can cause any damage whatsoever, much, much worse will happen. Focusing on false threats at the cost of research is what's causing so many of our current problems. So I suggest you all get a clue, or at least stop spreading blind FUD. Thanks.


In reply to Re: SelfChanging script! by Anonymous Monk
in thread SelfChanging script! by Nik

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.