If i follow the need correctly you need a unique identifier for one particular yad process but outside of a script.
One approach I had was to make a unique sysmlink to say yad in /tmp...eg /tmp/yad-myscript
then launch your yad from /tmp/yad-myscript ... this then appears in such as pidof or ps as a unique running process thats easy to kill independantly.
Think in terms of mplayer and gmplayer...
mike
About yad [SOLVED]
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
I finally kept my solution and "pruned it away": this is very simple and seems to work fine:
But, is there any contraindication to use it or something to add to make it better?
Cordialement.
Code: Select all
KillYad(){
YAD_PID=`ps | grep yad | grep -w POSou | cut -d" " -f 1`
kill -15 $YAD_PID
Cordialement.
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonjour,
To dowload the latest 0.23.1 yad version: http://www.murga-linux.com/puppy/viewto ... 6&start=60
Cordialement.
To dowload the latest 0.23.1 yad version: http://www.murga-linux.com/puppy/viewto ... 6&start=60
Cordialement.