exec error

sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

exec error

Post by sourceuno »

I get this error in the error log after running my script called test:

118 Jul 10 10:53:06 test:3: <EXEC> command c:\inetpub\scripts\texis.exe returned exit code 1

Here's the script, which runs fine when run through a browser:

<script language=vortex>
<a name=main public>
<exec nobr "c:\inetpub\scripts\texis.exe" "f:\projects\texis\vortex scripts\siteedit"></exec>
</a>

</script>

What's causing this error?
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

exec error

Post by Kai »

What version of Vortex is this? (complete output of texis -version)?

Is there a particular reason you're <EXEC>ing another Vortex script, instead of merging the code or using modules (more efficient)?

Are there any errors for siteedit in the vortex.log? Does the user you're running as from the command line have permission to read the siteedit script and .vtx file?
iclbloom
Posts: 103
Joined: Mon May 07, 2001 5:51 pm

exec error

Post by iclbloom »

msxsl.exe takes an xml and an xsl file/url and transforms them into a html file.
I create the xml and xsl via a vortex script, run msxsl and grab the resulting html and return it.

from the cmd line I do the following and it works fine:
msxsl.exe http://lensock.abc.com/cgi-bin/texis.ex ... xmlout.xml http://lensock.abc.com/cgi-bin/texis.ex ... xslout.xsl

but when I try this from vortex or anything like it
<EXEC \winnt\system32\cmd /c msxsl.exe http://lensock.abc.com/cgi-bin/texis.ex ... xmlout.xml http://lensock.abc.com/cgi-bin/texis.ex ... xsl></EXEC>

I get:

<!-- 118 /texis/scripts/test_daypart:15: <EXEC> command msxsl.exe returned exit code 1 -->
<br>
Error occurred while loading document 'http://lensock.abc.com/cgi-bin/texis.ex ... t.xml'.<br>
<br>
Code: 0x800c0007<br>
No data is available for the requested resource.<br>

I've tried many combinations w/ the EXEC cmd and nothing works

VER:
Commercial Version 3.01.984682785 of Mar 15, 2001 (i686-intel-winnt)

Thanks
Leon Bloom
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

exec error

Post by John »

John Turnbull
Thunderstone Software
iclbloom
Posts: 103
Joined: Mon May 07, 2001 5:51 pm

exec error

Post by iclbloom »

When run via the browser I get:
<!-- 118 /texis/scripts/test_daypart:11: <EXEC> command msxsl.exe returned exit code 1 -->
Error occurred while loading document 'http://lensock.ncsc.mil/cgi-bin/texis.e ... .xml'.Code: 0x800c0007No data is available for the requested resource.

works fine, and I get the expected html, when run from the cmd line as:
texis test_daypart/htmlout.html

the code looks like this:

<a name=htmlout public>
<EXEC msxsl.exe -pi http://lensock.ncsc.mil/cgi-bin/texis.e ... xmlout.xml ></EXEC>
<send $ret>
</a>


Thanks
Leon Bloom
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

exec error

Post by mark »

Maybe the webserver's CGI environment is restricting msxsl in some way. Try running the vortex script with the exec from the command line to narrow it down:
texis test_daypart/htmlout.txt
iclbloom
Posts: 103
Joined: Mon May 07, 2001 5:51 pm

exec error

Post by iclbloom »

That’s what it must be because it runs fine from the cmd line. What should I look for concerning the CGI's env vars? I am running IIS?

Thanks
Leon Bloom
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

exec error

Post by mark »

Don't know. Maybe it's time to contact support for the makers of msxsl.exe to find out why it doesn't work in CGI setting? Vortex generally clears the CGI specific environment variables before exec'ing. More likely it's some kind of NT permission issue than an environment issue.