[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: sys.execute error
- Subject: Re: sys.execute error
- From: JohnQuirk
- Date: Wed, 07 Jan 2004 21:17:00 +0000
Thanks John,
Get that syntax right and it works great. I seem to now have some
problems with security or something as the command I want to execute:
call sys.execute("hsc.exe"," -x H4 on",False)
gets executed ok, but doesn't work and if I do juts launch notepad,
it starts a process ok but doesn't populate the screen. Is there a
parameter I can pass to make it interact with the desktop, like
there is with "at /INTERACTIVE" at the command prompt?
--- In <a
href="/group/ukha_xpl/post?postID=3SjzIBhde1Pct-lp9sr2p4-o77AKbGLvN7ftg6TarMdjEaKMyTWCAMJ8RWilq5Gyz_42xREhSdlv_sOo6o3nI-oI">ukha_xpl@xxxxxxx</a>,
"John B" <home-automation@j...>
wrote:
> Hi John,
>
> > This is taken from XLProject.org.uk and is the script I'm using:
> <snip>
> > call sys.execute("notepad.exe")
>
> This is your problem.
> You need to pass three parameters to sys.execute.
> The original script on xplproject.org.uk that called shutdown
looked like this:
>
> call sys.execute("poweroff.exe","/h
127.0.0.1",False)
>
> The first parameter is the name of the EXE file to run, the second
is any parameters, and the third must be true or false.
> If true, the script will wait for the application to close before
continuing - if false, the script will continue straight away
without waiting for the application.
>
> So, try changing your sys.execute call to something like:
>
> call sys.execute("notepad.exe","",True)
>
> HTH,
>
> John
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|