Typically the user of CGI is "nobody" right? Can "nobody" run a cron job? I did add some code to my CGI to shut down the sound, and it works fine on streams started from Apache, but as you implied, the cron started stream is unaffected.

I don't like polling for a file, seems inelegant. Rather have a push process.

The stream that I run from cron is permanent(or nearly so). It is the feed from my local NPR station, plays news until 9:00, then goes into really bad classical music, probably until 4:00.

Edit: Ok, answered my own question. Yes, "nobody" appears to be able to run a cron job. I moved my timed feed to be owned by "nobody" (discovered that I had to su into root, then from root to nobody). Hopefully I will be able to take better control now.

Skip

In reply to Re^2: CGI Process Control by SkipHuffman
in thread CGI Process Control by SkipHuffman

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.