Sergey,

I am running latest version 1.41 under windows xp.

I have the php and perl scripts working as cgi.

I wonder if it is possible to have windows bat/cmd scripts as cgi ?

I have the following settings in .conf:

cgi_ext cgi,pl,php,cmd

I have test.cmd in the web root as follows:


#!c:\windows\system32\cmd.exe /c "%1"
@echo off

echo Content-Type: text/html
echo.

echo ^<HTML^>^<BODY^>
echo ^<PRE^>Your environment variables are:
set
echo ^</PRE^>^</BODY^>^</HTML^>


It just returns the full path of the webroot.

Any suggestions ?

Thanks

Sean

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general

Reply via email to