We have here a read only Bash variable. I am not allowed to unset that variable.
$ echo $TMOUT
1800
As a workaround I wrote those lines (that my session don't exit)
#!/usr/bin/perl
$|++;
while (1) { print "\e[0n"; sleep 120; }
Is there an official package (rpm) that does similar (like above Perl code) in a CentOS7/RHEL7 repository? I don't like to open up a vim editor, I wish a command.
cat
when stepping away from your session. And then ^C it on your return.exec env TMOUT=0 bash
cat
is just setting yourself up to fail.