Cool. Why? Is this to prevent staying logged into an agent? What is the benefit? honest q, learning here.

Reply to this note

Please Login to reply.

Discussion

It's good for remotely running long running processes.

That's why I came across `screen`

ssh

screen

./program

ctrl+Detach

exit

good to know, thank you. 🤝

Add this into your. bash_functions

scr ()

{

echo "Disconnect from your screen session: CTRL-A, d";

echo "Open another screen 'window': CTRL-A, c";

echo "Cycle through you open screen windows: CTRL-A, space";

read -p "Press enter to continue";

screen -ls | grep --color=auto -q Main && screen -xr Main || screen -S Main

}

export - f scr

Now you have a shortcut that remembers if you had a running session.