You are not logged in.
Hi there!
I wonder if there is a way to execute two commands inside on <click> tag without evoking an additional script? I just want something like this
echo "<img>PATH/TO/IMAGE</img><click>some_command && another_command</click>
it appears that in this case only first command is executing.
Last edited by Speranskiy (2016-04-08 19:29:15)
Offline
It doesn't handle &s well. You need to embed them in a bash shell call. Try:
echo "<img>PATH/TO/IMAGE</img><click>bash -c 'some_command && another_command'</click>"
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Hi ToZ!
Haha! Actually I did tried to exec the commands inside sh -c but I used double quotes and it didn't work out for me Single quotes work much better! Thank you!
Last edited by Speranskiy (2016-04-08 19:29:48)
Offline
[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 519.38 KiB (Peak: 520.22 KiB) ]