The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Pages: [1]   Go Down

Author Topic: VBS & Javascript as a cgi  (Read 7120 times)

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 827
VBS & Javascript as a cgi
« 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
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 574
Re: VBS & Javascript as a cgi
« Reply #1 on: September 27, 2012, 08:19:18 PM »

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

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 827
Re: VBS & Javascript as a cgi
« Reply #2 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
Code: [Select]
'!C:/Windows/System32/cscript.exe -nologo
Unless you are using WinNT or W2k (hope not).
Logged

Gregg

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 827
Re: VBS & Javascript as a cgi
« Reply #3 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).

Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 574
Re: VBS & Javascript as a cgi
« Reply #4 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.
Logged
Pages: [1]   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13