Page 1 of 1

Calling Vortex from Perl

Posted: Thu Sep 16, 2004 5:18 pm
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?

Calling Vortex from Perl

Posted: Thu Sep 16, 2004 5:51 pm
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.

Calling Vortex from Perl

Posted: Fri Sep 17, 2004 10:41 am
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.