There are no Apache reasons why you shouldn't be able to do this as a CGI script.
You just need to keep in mind:
1) Your CGI is running as part of the Apache batch job, with the same
privileges as the userid in the User directive in httpd.conf.
2) Multiple Apache children can be executing your CGI at the same time, so you
must take care to choose unique tempfile names (i.e. pid/pin-based).
- Mark B.
Donna Garverick wrote:
> hi all!
>
> i have an existing mpe script that knows how to find a
> desired o###.out.hpspool file -- by parsing output from
> listspf (and that involves a temporary file...) -- and
> finally uses the print command to list the contents of the
> file to a termina/lsession.
>
> that's fine given the script's typical usage.
>
> i'd like to develop a similar script -- but now it's going
> to be run thru the browser as a cgi thing. i'm struggling
> with how to extract this 'o' number from listspf because i'm
> not having any luck writing it to a temporary file (or maybe
> it's reading it back in....hard to say). does anyone have
> any thoughts? maybe you've developed a similar solution for
> another cgi script?
>
> i should add that it's *not* a $stdlist that i'm after, so i
> don't think a jobcnt/jinfo combo will work.
>
> (btw, perl is an option....) - d
>
> --
> Donna Garverick Sr. System Programmer
> 925-210-6631 [log in to unmask]
>
> Come, my friends, 'Tis not too late to seek a newer world.
> Tho' much is taken, much abides; and tho'
> We are not now that strength which in old days
> Moved earth and heaven, that which we are, we are.
> "Ulysses", A. Tennyson
>
>
>>>>MY opinions, not Longs Drug Stores'<<<
>>>>
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
>
>
--
[log in to unmask]
Remainder of .sig suppressed to conserve expensive California electrons...
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|