First off, thanks so much to all the people who responded to my Infinte perl script question. I got some great answers and ideas, and it really helped me clean up my script!

Now, this is more of a *NIX question than a perl one, but I figure that you guys should be able to help me nonetheless. I want to be able to have my script running all the time, on my webhost's server, which I access via telnet. Now, my host is just a friend, so I have root, but I am not allowed to edit any system files or restart the computer. So, I thought that this would work just fine:
# ./my_program.pl &
Effectively starting the program in *NIX background mode. It worked just fine, and upon 'ps aux', I found it to be happily idling away (only chewing up .05% of CPU time - thanks!). However, as soon as I log out from my telnet seession, the program stops running! I have tried starting it from both my user account and from root, and it still stops running! What the heck is happening?

Is there anyway that I could start this program, AND keep it running all the time, WITHOUT using cron or editing rc.d file? Thanks again, everyone's help here is wonderful!!

R.Joseph

In reply to Infinte perl script - Part 2 by r.joseph

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.