I am attempting to stuff a line s.a.
echo $$ | command
into an existing screen window.
e.g. screen -S session -X stuff "echo $$ | command\n"
However $$ appears to already have been evaluated once it is entered into the window.
e.g. echo 7589 | command
Where 7589 is $$ of the shell executing screen -S.
Is there a way to stop the shell from evaluating $$ prior to stuffing the string?