You are not logged in.
Pages: 1
Hi,
I've a question of principle concerning to the ~/.config/xfce4/desktop/menu.xml .
Is it possible to run more than one command under cmd like
cmd="mount | grep -q value;result=$?; if [ $result == "xxx" ]; then do this; else do that; fi"
???
I try it, but it didn't work. In the shell prompt it act perfectly.
Thanks a lot!!!
Greetz
rumbi
Offline
You could presumably put all of that into a bash script and then just call the bash script.
Offline
Thanks!
But why isn't it possible to use the whole in the "menu.xml" ???
It's sort of weird.
Greetz
rumbi
Offline
Logical operators like & or | are only supported by the shells. You could do a
sh -c "mount | grep -q value; ..."
This could work
[img]http://www.us.debian.org/logos/button-mini.png[/img]
Offline
Pages: 1
[ Generated in 0.011 seconds, 9 queries executed - Memory usage: 523.95 KiB (Peak: 524.79 KiB) ]