The Apache Haus Forum

Forum Topics => Scripting Languages => Topic started by: Gregg on January 18, 2012, 07:08:54 AM

Title: VBS & Javascript as a cgi
Post by: Gregg on January 18, 2012, 07:08:54 AM
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
Title: Re: VBS & Javascript as a cgi
Post by: mario on September 27, 2012, 08:19:18 PM
Too bad that the example script is now kinda disabled in trunk :-/
Title: Re: VBS & Javascript as a cgi
Post by: Gregg on September 27, 2012, 09:55:23 PM
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).
Title: Re: VBS & Javascript as a cgi
Post by: Gregg on September 27, 2012, 09:58:43 PM
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).

Title: Re: VBS & Javascript as a cgi
Post by: mario on September 28, 2012, 12:01:05 PM
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.
Title: Re: VBS & Javascript as a cgi
Post by: BrendonKyte on October 16, 2020, 01:01:06 PM
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 ?
Title: Re: VBS & Javascript as a cgi
Post by: mario on October 16, 2020, 01:11:47 PM
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.