On Fri, 2013-10-18 at 18:45 +0200, Ralf Mardorf wrote: > On Fri, 2013-10-18 at 18:36 +0200, Ralf Mardorf wrote: > > On Fri, 2013-10-18 at 18:34 +0200, Ralf Mardorf wrote: > > > if [ "$(pidof wallpaperRandomSwitch.sh)" ] ; then > > > killall -9 -w wallpaperRandomSwitch.sh > > > fi > > > # add your code here > > > exit > > > > > > while pidof wallpaperRandomSwitch.sh > /dev/null ; killall > > > wallpaperRandomSwitch.sh ; done > > > # add your code here > > > exit > > > > Or write an init script or systemd script, what ever you're using, to > > kill the script at shut down. > > > Oops, instead of pidof you need to run > > ps aux | grep /path/to/wallpaperRandomSwitch.sh
:D ps aux | grep /path/to/wallpaperRandomSwitch.sh | grep -v grep -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1382114994.678.19.camel@archlinux