This works for the full version of pgrep/pkill, but I can't make it work for the busybox implementation of pkill. Does this work for anybody or is it just me?
Following example code opens two dialogs. After 2sec the "Hello" dialog is supposed to close, but it doesn't:
Code: Select all
xmessage Hello & gxmessage World & sleep 2 ; busybox pkill -x xmessage