EXEC

Post Reply
gazim
Posts: 66
Joined: Sun Feb 18, 2001 1:01 pm

EXEC

Post by gazim »

Is there a way I can call a Vortex function using "EXEC"?
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

EXEC

Post by John »

Sure. You can do:

<EXEC texis script/function.txt>
</EXEC>

Although why do you want to call it via exec and not just call it in Vortex?
John Turnbull
Thunderstone Software
gazim
Posts: 66
Joined: Sun Feb 18, 2001 1:01 pm

EXEC

Post by gazim »

my code looks like this..

<EXEC texis test>
</EXEC>

'test' is another vortex file that looks like

<script language=vortex>
<a name=main>
hi there
</a>

</script>

I got this following error-

<!-- 018 /myexecfile:8: Can't exec `texis': No such file or directory in the function doexec -->


Please let me know what I am doing wrong here.
I am running texis on a solaris box. Texis build date is Dec 2000.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

EXEC

Post by John »

You probably don't have texis in your path. You should specify the full-path to texis and the script, as there is no guarantee of the current directory when a script is run.
John Turnbull
Thunderstone Software
gazim
Posts: 66
Joined: Sun Feb 18, 2001 1:01 pm

EXEC

Post by gazim »

Thanks John. I have one more question.
I want to pass a variable to the test file.
I tried to do ..

<EXEC BKGND /usr/local/morph3/bin/texis myid=$id test>
</EXEC>

It works fine when i try to pass a variable to the file from the command line..but it gives me the following error message when i do it in a vortex file.

Texis Web Script (Vortex) Copyright © 1996-2000 Thunderstone - EPI, Inc.
Commercial Server Version 3.01.976899697 of Dec 15, 2000 (sparc-sun-solaris2.6)

Error
015 /oledbtest:17: Syntax error: <EXEC [BIN] [NOBR] [BKGND] prog args ...>

and also.. can i pass more than variable at the same time?
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

EXEC

Post by John »

You need to put the argument into a separate variable:

<$args=>
<strfmt "myid=%U"><$args=$args $ret>
<exec bkgnd /usr/local/morph3/bin/texis $args /path/to/test>
</exec>

You could add as many args as you want.
John Turnbull
Thunderstone Software
Post Reply