On Wed, 30 Jul 2014 13:45:08 -0400 (EDT) Stuart Barkley <stua...@4gh.net> wrote: > Looks like pgrep only matches 15 characters of the process name and is > not a good replacement for pidof. > >
Right. > serverpid=$(pgrep -n -u $XUSER "$PROC_NAME") pgrep needs the -f option, then the script works and power button behaves as expected. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org