[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: X10 and xAP
- Subject: Re: X10 and xAP
- From: "mark_harrison_uk2" <mph@xxxxxxxxxxxxxxx>
- Date: Thu, 13 Jan 2005 20:17:05 -0000
--- In xap_automation@xxxxxxx, Andrew Jones
<andrewjjones@l...> wrote:
> Yes! It works! I found out the name and now I just need to
> get it online.
> Hmm... I tried that, even tried simplifying it (just for
> testing) to:
>
> #!I:/perl/bin/perl.exe
> print "\n";
> $xapcall="send/send.exe on.xap";
> system $xapcall > null ;
>
> with the paths corrected for me, but the send program doesn't run :(
> The $xapcall is definately right because it runs fine from a command
> line. I expect it's probably something to do with the fact that
> I know nothing about setting up cgi :)
Things to check:
1: Where is the send/send.exe executable. It may be that it needs to
be right in the cgi-bin directory.
2: Is CGI enable in Apache config. You'll need lines there like:
> LoadModule cgi_module modules/mod_cgi.so
> ScriptAlias /cgi-bin/ "C:/Program Files/Apache
Group/Apache2/cgi-bin/"
Then a section like:
<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
3: Finally, the ever popular "try to run notepad.exe on the
server"
debugging tool. Does some CGI like the following work:
> #!I:/perl/bin/perl.exe
> print "\n";
> $xapcall="notepad";
> system $xapcall > null ;
If it works, then you've got a xAP/path problem.
If it fails, then you've still got a problem running CGI at all.
4: If you're a PGP person, is it sensible to do this in PERL. I wrote
my CGI code before I'd ever used PHP. If I were starting now, then I'd
seriously consder just using the PHP "system" command rather than
messing around shelling out to PERL.
Keep us posted - it put a smile on my face reading the initial "Yes!
It works!" :-)
Regards,
Mark Harrison
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|