Skip to main content

[archive] Apache,IIS and C$SYSTEM

  • March 10, 2009
  • 3 replies
  • 0 views

[Migrated content. Thread originally posted on 10 March 2009]

acu version:acucobol 6.0

...

STRING "c:\\rel\\object\\systemid.exe > "
DELIMITED BY SIZE
"c:\\rel\\object\\systemid.dat"
DELIMTED BY SIZE
INTO COMMLINE
CALL "C$SYSTEM" USING COMM-LINE, 64

...

and this code runs as cgi code.

When I use Apache as WebServer, I could see "systemid.dat" created with correct data.

When I use IIS as WebServer, "systemid.dat" is not created at all.

Both Apache and IIS are installed on WindowsServer 2003.

Could anyone help me figure out what could cause this?

Thanks in advance.

3 replies

[Migrated content. Thread originally posted on 10 March 2009]

acu version:acucobol 6.0

...

STRING "c:\\rel\\object\\systemid.exe > "
DELIMITED BY SIZE
"c:\\rel\\object\\systemid.dat"
DELIMTED BY SIZE
INTO COMMLINE
CALL "C$SYSTEM" USING COMM-LINE, 64

...

and this code runs as cgi code.

When I use Apache as WebServer, I could see "systemid.dat" created with correct data.

When I use IIS as WebServer, "systemid.dat" is not created at all.

Both Apache and IIS are installed on WindowsServer 2003.

Could anyone help me figure out what could cause this?

Thanks in advance.
There is one issue I think of instantly here, that is security. I know IIS has pretty strict security on running executables. Chances are, your problem is rooted in this.

[Migrated content. Thread originally posted on 10 March 2009]

acu version:acucobol 6.0

...

STRING "c:\\rel\\object\\systemid.exe > "
DELIMITED BY SIZE
"c:\\rel\\object\\systemid.dat"
DELIMTED BY SIZE
INTO COMMLINE
CALL "C$SYSTEM" USING COMM-LINE, 64

...

and this code runs as cgi code.

When I use Apache as WebServer, I could see "systemid.dat" created with correct data.

When I use IIS as WebServer, "systemid.dat" is not created at all.

Both Apache and IIS are installed on WindowsServer 2003.

Could anyone help me figure out what could cause this?

Thanks in advance.
There is one issue I think of instantly here, that is security. I know IIS has pretty strict security on running executables. Chances are, your problem is rooted in this.


As gforseth metioned, I just post an link in the browser address bar(the runcbl.pl will call mycode.acu to run):
http://localhost/cgi-bin/runcbl.pl?mycode.acu

and the browser give back the error message as:
"The specified CGI application misbehaved by not returning a complete set of HTTP headers. "

I googled the error message, and find this page:
http://kbalertz.com/155357/Scripts-Execute.aspx

and follow that artilce : I changed my c:\\windows\\system32 permission to allow IUSER_servername to full-control.

and I posted same link again in browser address bar,
the file was created!

It is beautiful!

Thanks gforseth, I make it.:p

[Migrated content. Thread originally posted on 10 March 2009]

acu version:acucobol 6.0

...

STRING "c:\\rel\\object\\systemid.exe > "
DELIMITED BY SIZE
"c:\\rel\\object\\systemid.dat"
DELIMTED BY SIZE
INTO COMMLINE
CALL "C$SYSTEM" USING COMM-LINE, 64

...

and this code runs as cgi code.

When I use Apache as WebServer, I could see "systemid.dat" created with correct data.

When I use IIS as WebServer, "systemid.dat" is not created at all.

Both Apache and IIS are installed on WindowsServer 2003.

Could anyone help me figure out what could cause this?

Thanks in advance.
Thanks for sharing this information :-)