Please login or register.

Login with username, password and session length

Author Topic: no arguments allowed for commands  (Read 8950 times)

alex

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 16
no arguments allowed for commands
« 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?
Logged

X10 Pro

  • Hero Member
  • *****
  • Helpful Post Rating: 23
  • Posts: 1416
Re: no arguments allowed for commands
« Reply #1 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?
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.