hi,
hmm...i'll try backing up a bit. basically this is what i want to do.
a webpage that screens for stocks. variables from the webpage is sent
to a perl script which displays (in html format) charts based on the values
and parameters passed.
the perl script calls upon another script to display the charts. the
second script
makes a system call to main.exe (the charting program).
ie.
from FirstScript.....
$basicParam = "/cgi/SecondScript.pl?symbol=${symbol};
<img src="${basicParam}&indicator=price&chartType=${chartType}"
${priceImgSize}>
<img src="${basicParam}&indicator=volumn&p1=${p1}&p2=${p2}"
${chartImageSize}>
from SecondScript....
&ReadParse(*para);
foreach $name ( keys(%para) ) {
push(@query, "$name=$para{$name}");
}
#various parameters
$comline = join("\&", @query);
system("/cgi/main.exe $comline");
so my question is...
how do i connect the second script to the charting program? use an LWP
package?
thanks,
pete
-----Original Message-----
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 8:52 AM
To: Peter Lee
Cc: [EMAIL PROTECTED]
Subject: Re: connecting to program
On Tue, 31 Jul 2001, Peter wrote:
> i am trying to call a c program (main.exe) using these.
> the c program resides in a different machine from the script.
>
> the comline scalar just adds on different parameters for the program.
>
> i feel like im doing something wrong with my system call. is a call to
> a url allowed?
Not through system. You will need to use LWP to run executables through a
URL (assuming that the remote machine will let you run that program this
way). Otherwise you will need to run the program through some other, and
hopefully secure, means of executing remote programs, like ssh.
- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
I disagree with what you say, but will defend to the death your right to
tell such LIES!
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]