I'm a little unclear on what you're trying to accomplish, here. A CGI script isn't 'running', unless someone accesses the page. You can invoke a script from your currently running script, passing commands either through STDIN (you'd have to fake looking like a webserver invoked you, most likely, to make it happy), you could invoke it with arguments on the command line, or you could invoke the script by accessing via the webserver (basically making your script look like a browser client).

Perhaps a little more detail here, and we could give you some more useful help, or point you towards a better way to accomplish whatever is you're trying to do.

As a side note, having a script named 'login.pl' is questionable, at best. There are certain common names that 'cracking' programs scan for, and by naming a script 'login.pl', you're inviting it to take a closer look at you. There's about a half a dozen common names you want to avoid.

--Chris

e-mail jcwren

In reply to (jcwren) Re: sending data between CGI scripts by jcwren
in thread sending data between CGI scripts by jlistf

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.