[openbox] command contains $ and &
Dana Jansens
dana at orodu.net
Tue Dec 14 10:50:08 EST 2010
On Tue, Dec 14, 2010 at 2:10 AM, Johan Vromans <jvromans at squirrel.nl> wrote:
> Jonas J Linde <jonas at init.se> writes:
>
>> I'd use
>> <command>sh -c "kill $(pidof tint2)"</command>
>> in that case.
>
> Yes, because you are actually executing a shell command, not a system
> command.
>
>>>2. command contains &
>>><action name="Execute">
>>>Â Â Â <command>rdesktop xxx.xxx.xxx.xxx -u administrator -p xxxx&xxxx</
>>>command>
>>></action>
>>
>> And I'd use the same trick for that.
>
> Why? I see no reason why
>
> <command>rdesktop xxx.xxx.xxx.xxx -u administrator -p xxxx&xxxx</command>
>
> should not work (It doesn't, since it leaves & in the command
> instead of substituting a & . However, using a single & makes the XML
> parser barf.)
If you want to run two things you can use two execute actions.
And you can't use shell things in a command unless you run them in a
shell, as Jonas said. Openbox has no intention of being a shell. &
is a shell thing like $()
- Dana
More information about the openbox
mailing list