Run a Windows command in Perl outside of CGI enviroment -


i have specific proprietary application, dual use, running "account.exe" in cgi context (eg inside web server) make account.exe output html page , such. running "account.exe" outside of cgi context causes account.exe enable command line functions.

now question: want run account.exe outside cgi context in perl. have tried system(1, "command"); have tried system("start command"), tried bat wrapper clears (set variable=) every enviroment variable has cgi do, still account.exe "detects" run web server , outputs html.

how can run windows command in cgi script in perl (using strawberry perl) , making impossible "account.exe" application detect execution came web server?

there many ways how account.exe possibly detect how run.

environment variables 1 way; seems have ruled 1 out.

normally processes can see parent , parent, other way.

so either can lot of testing until fool specific technique process using, or might want try sandboxing gain more control on process can or cannot see (or do).


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -