Gossamer Forum
Home : Products : DBMan : Installation :

Calling another program

Quote Reply
Calling another program
I need to call another program called
iwwiaa.pvx
from the cgi program, so that when the user clicks the submit button, the search is made, and the .pvx program is called as well.

Can you help please

Thanks so much, your help was great last time I had a question

Evan
Quote Reply
Re: Calling another program In reply to
You might be able to add a line

Code:
require $db_script_path . "/iwwiaa.pvx";

if the other script is in the same directory as DBMan.

If not, you would use the full path to the other file.

I don't know whether this will work or not.

Oh, if you want to call it when a search is conducted, you would put it in sub view_records in the db.cgi script. Where you would put it would depend on whether you wanted it to run before or after the search was actually conducted.


------------------
JPD






Quote Reply
Re: Calling another program In reply to
is the period attached to the $db_script_path or to the "/iwwiaa.pvx", or is it right in the middle

required $db_script_path . "/iwwiaa.pvx"

Thanks
Evan
Quote Reply
Re: Calling another program In reply to
The period is between them. It's a "concatenation" character, which is sorta like a +, except with strings.

Look at your default.cfg file, at the end of the files section and you'll see

Code:
require $db_script_path . "/html.pl";

It's the same pattern as that.


------------------
JPD






Quote Reply
Re: Calling another program In reply to
Thanks That works, I can call a program that is on the same server as db.cgi. But I forgot to say that the program I need to call is on a different server. The server it is on is, 208.36.55.132

The other thought I had was to call the other program straigt off the html form. So that when the user hit the Submit button for a search, the button could trigger db.cgi as well as iwwiaa.pvx. Do you know how to do that?

Thanks again

Evan
Quote Reply
Re: Calling another program In reply to
I may be wrong, but I don't think you can call a program from another server. If I am wrong, I'm sure someone will correct me. Smile



------------------
JPD






Quote Reply
Re: Calling another program In reply to
I thought maybe it could be done because I can have an html form on SERVER ONE with an action of
http://www.SERVER TWO.com/cgi-bin/db.cgi
and that will work.

Any thoughts on 2 form actions connected to 1 submit button, because I could have the html form & iwwiaa.pvx on the same server have my first form action be:

http://www.ANOTHER SERVER/cgi-bin/db.cgi

and at the same time have another form action be:

FORM ACTION="http://www.THIS SERVER/cgi-bin/iwwiaa.pvx"

What do you think

Thanks

Evan
Quote Reply
Re: Calling another program In reply to
In a form, only the first form action will be executed. Any subsequent "action" tags within a form will be ignored.

I thought you were still talking about SSI. My mistake.


------------------
JPD