Command like the following:
ssh hostname 'tmux new -d "export A=whatever && echo $A && while true; do date; sleep 1; done"'
After executing this command, ssh to hostname and attach to the tmux session, you'll see that $A is empty.
Command like the following:
ssh hostname 'tmux new -d "export A=whatever && echo $A && while true; do date; sleep 1; done"'
After executing this command, ssh to hostname and attach to the tmux session, you'll see that $A is empty.
برچسب:
نویسنده: استخدام کار