VBS & Javascript as a cgi

Started by Gregg, January 18, 2012, 07:08:54 AM

Previous topic - Next topic

Gregg

Guenter back prior to 2.2.19?, at latest 2.2.20 added a new shebang to mod_cgi that allows one to run VBS (and I think javascript) as a cgi.
He sent me this back awhile ago, saying I might like to post it here. I looked at it but forgot to share.  Your mileage may vary.

http://forum.uniformserver.com/index.php?showtopic=2236

mario

Too bad that the example script is now kinda disabled in trunk :-/

Gregg

Yeah, but it would be easy to enable. I can see the ASFs point of view on it, and printenv.pl I think is going to be disabled as well.

For the majority of Windows users, the shebang is just
'!C:/Windows/System32/cscript.exe -nologo

Unless you are using WinNT or W2k (hope not).

Gregg

Coming possibly is going to be printenv.wsf wscript (seems odd since it only works at desktop), printenv.py, printenv.rb and printenv.js which then get's compiled into an .exe should jsc.exe exist on the machine (most likely).


mario

I guess than I would use a .js file with '!C:/Windows/System32/cscript.exe -nologo to have it easier in programming... ok it is not 100% javascript. JScript but is 98% compatible.

BrendonKyte

Quote from: mabio on May 11, 2014, 02:59:18 AM
Too bad that the example script is now kinda disabled in trunk :-/
I think you are using wrong Javascript for web Development ?

mario

Quote from: BrendonKyte on October 16, 2020, 01:01:06 PM
I think you are using wrong Javascript for web Development ?

Server side javasript or the M$ variant JScript was long used parallel to VBS. It still runs with Classic ASP on IIS.