X10 Community Forum

🖥️ActiveHome Pro => ActiveHome Pro General => Software Problems & Bugs => Topic started by: alex on November 11, 2005, 12:14:10 AM

Title: no arguments allowed for commands
Post by: alex on November 11, 2005, 12:14:10 AM
i want to create a macro that executes a
program, but i want to be able to pass
command line arguments to the program. i
tried just typing it in, but it WON'T WORK!
it just runs the program without args. i'm
trying to run the following command which
works fine when run in Command Prompt:

javaw.exe -cp C:/workspace3.0/X10
x10.ahd.ActiveHomeReceived D-1-on

when i receive D1 on. when D3 on is
received it executes:

javaw.exe -cp C:/workspace3.0/X10
x10.ahd.ActiveHomeReceived D-3-on

and the same for D5, D7, and D9 with those
codes put in place of D-1-on and D-3-on.
this program does what it needs to and
exits. typically the program only runs for
about 1/2 second and D1, D3, D5, etc. are
triggered by motion sensors. how come
ActiveHome Pro won't pass args to javaw.exe?
Title: Re: no arguments allowed for commands
Post by: X10 Pro on November 11, 2005, 07:44:57 PM
I'll check with the team, but if that doesn't
work I'd guess that we aren't parsing
everything we need to pass arguments. As a
workaround, could you make a batch file that
runs with the arguments you need?