I am struggling to work out what exactly the following alias does. I guess it is making the environment variable COUNTER available to the user nobody but the COUNTER=${COUNTER} preceding the ssh and the SendEnv COUNTER stump me. I have looked up the man pages but I am none the wiser.
COUNTER=280
...
alias run='COUNTER=${COUNTER} ssh nobody@localhost -o "SendEnv COUNTER"'
I'd like to rewrite this alias without ssh (because it has been disabled). Here is my attempt, but I am not sure if I have done the right thing if I don't understand what the original alias does exactly.
alias run='su - nobody -c "export COUNTER=${COUNTER}"'
