Note: This is for running remotely to script this drop all the \ from the \$
Also
PID=$(ps -fu $USER |awk '/[g]nome-screensaver/ { print $2 }' )
gives PID where no pidof is installed.
Note: This is for running remotely to script this drop all the \ from the \$
Also
PID=$(ps -fu $USER |awk '/[g]nome-screensaver/ { print $2 }' )
gives PID where no pidof is installed.