0

I have added Command Applet to the MATE Panel.

I planed to use a command with some scripting inside to check server availability - something like

wget --quiet https://someserver -O - | grep -s somedata > /dev/null && echo "S OK" || echo "S FAIL!"

or

curl -s https://someserver | grep -s somedata > /dev/null && echo "S OK" || echo "S FAIL!"

I have added this command to Preferences.

In terminal it works as expected, but Command Applet shows only # inside:

Command output

I tried to move the long command to script file, but got the same result.

N0rbert
  • 103,263

1 Answers1

0

It is really simple, one have to save the command into script file like /home/user/bin/script.sh, make it executable by chmod +x /home/user/bin/script.sh and then enter this path /home/user/bin/script.sh in Command field of Command Applet.

N0rbert
  • 103,263