Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: CGI and spawning a process with UI (Win32)

by ady (Deacon)
on Apr 14, 2007 at 19:42 UTC ( [id://610098]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI and spawning a process with UI (Win32)
in thread CGI and spawning a process with UI (Win32)

Hi shmem,

The cgi process (doing: system("perl ResetCCN.pl");) is running under the same logon account (and running the exact same code: ResetCCN.pl) as when ResetCCN.pl is run directly from a command-line window.

Can it be that a system/exec from a program initiated from a CGI-program (ie the IIS webserver) will pr. default start the process in the background? And how might that be tweaked to run the program with a proper UI ?

Allan
  • Comment on Re^2: CGI and spawning a process with UI (Win32)

Replies are listed 'Best First'.
Re^3: CGI and spawning a process with UI (Win32)
by shmem (Chancellor) on Apr 14, 2007 at 19:46 UTC
    The cgi process (doing: system("perl ResetCCN.pl");) is running under the same logon account (and running the exact same code: ResetCCN.pl) as when ResetCCN.pl is run directly from a command-line window.

    Sure? so the IIS Webserver is running under that account, and not under e.g. "Local System" ?

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      The authentication is set up for the webhome in question (the one hosting the perl.cgi program); Users coming in via Anon.Access are mapped to a Windows_User_Acct. which is identical to the one used to logon to the server and directly running the ResetCCN.pl pgm.

      (The webhome with the CGI tho' is in a directory under the IIS 'Default Web Site', for which the authentication of anon. access is set to the standard local IUSR acct. But that shouldn't affect the specific authentication of the CGI webhome (I guess...)).

      Is there a specific security right btw, (dis)/allowing spawning of UI?
      /Allan (will sleep on this now...)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://610098]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-18 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found