Hello,
I don't mean to sound frustrated, but as always I'm having a tough time making things work correctly with windows, Ok enough complaining, this is my problem. I have several X10 components, and I just wish (at this point to simply turn them on and off)
I have added the path to the executable (x10com32.exe) to my system path environment varible so I can call the command from anywhere. Here is my code
#!perl.exe -wT
use Strict;
use CGI;
my $q = new CGI;
print $q->header("text/html");
print"<h2>Turning Lights ON</H2>";
my $command = join ("", "x10comm.exe ", "a2 ", "on");
system($command);
The command works fine from the cmd window, but will NOT work when I call it from my browser.....AARRRRGGGHHH!!!!
Any suggestions, or I have I been staring blindly at this VERY SIMPLE code, and have overlooked something. I'm using the latest version of apache for Windows XP, and the cgi perl module.
Thanks
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.