[openbox] command contains $ and &
Johan Vromans
jvromans at squirrel.nl
Tue Dec 14 02:10:19 EST 2010
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.)
-- Johan
More information about the openbox
mailing list