Calling Vortex from Perl

Post Reply
james120
Posts: 32
Joined: Tue Aug 31, 2004 7:42 pm

Calling Vortex from Perl

Post by james120 »

So far I haven't figured out just how this should be done. A perl script which calls a vortex script like so:

system "texis /var/www/html/test/vortex-script";

gives a "015 Incorrect Host Setup" error. The script works from the command line using the exact same syntax. And, even if it did work, I am not sure what would be returned (I need the data -- not just a status code). The docs don't seem to have any detail on this. Can you suggest how it should be done? Is there sample perl code anywhere?
james120
Posts: 32
Joined: Tue Aug 31, 2004 7:42 pm

Calling Vortex from Perl

Post by james120 »

By the way, I know the docs say that communication between vortex and other scripting languages can be done via HTTP. I'm not sure exactly what is meant by that. It sounds like you mean to call a vortex script just like it was any other web page, and then essentially screen-scrape it for the needed data. Certainly that is easy enough to implement, but I am just wondering if I am misunderstanding because that seems somehow inefficient.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Calling Vortex from Perl

Post by John »

Yes, it is fetching it as if it was any other web page. The result from Vortex can be in any format you want, e.g. XML, CSV to avoid the screen scraping. It can in some instances return the HTML snippet that will be dropped into the resulting page, which ends up being pretty efficient.
John Turnbull
Thunderstone Software
Post Reply