On Wed, 30 Jul 2014 13:45:08 -0400 (EDT) Stuart Barkley <[email protected]> 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 [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

