On 11/21/19 2:30 PM, Todd Zullinger wrote:
Those aren't actual code snippets you used, are they? This
code:
if ! [[ "pgrep ksysguard" ]] ; then
is testing whether the string is empty or not rather than
running the command and checking for output. You can see
that by running:
Maybe the OP meant to type
if ! [[ `pgrep ksysguard` ]]
??
:-)
--
The key to getting good answers is to ask good questions.