[TriLUG] Cleanly logging Ubuntu ssh client session

Cristóbal Palmer via TriLUG trilug at trilug.org
Thu Jan 25 15:26:05 EST 2024


On Thu, Jan 25, 2024, at 14:46, Alan Sterger wrote:
>
> Please advise.

per previous email: please give us more info and try more things.

please try each of the following:

* the output of 'env' before you call script
* script script_test_25_jan_2024
* the output of 'env' once you're inside the script
* touch foo
* echo bar > foo
* cat foo
* exit # this should close the script file
* cat foo
* cat script_test_25_jan_2024

-CMP

P.S. the dual role (for me) of tmux is to guard against a dropped network connection (irrelevant if you're at the console) and to allow a colleague at a remote site to look over your shoulder by doing a 'tmux attach' to the same session.


More information about the TriLUG mailing list