screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: screen - bash history


From: Roger
Subject: Re: screen - bash history
Date: Mon, 8 Nov 2021 22:53:28 -0500

I have frequently noticed GNU Screen with multiple Bash shells, each shell/tab, 
the history is routinely forgotten/lost.

A possible solution is to increase Bash history command and file size:

Here I increased from 150 to 15,000(lines/MB)

export HISTSIZE=15000
export HISTFILESIZE=15000

Sort of ridiculous, and I think the cause is more related to not safely exiting 
each shell/tab prior to halt.

Maybe the proper method to halt a system is to send a signal to GNU Screen, and 
place it within a halt.sh script?

Roger

> On Sun, Nov 07, 2021 at 06:20:08PM +0400, Vishal Priyatham wrote:
>   Thanks Robin for the reply.?
>   looks like we lost the history then as the screen session killed
>   now.? ?
>   Regards,
>   Vishal
>
>   On Sun, Nov 7, 2021 at 10:28 AM Robin Lee Powell
>   <robinleepowell@gmail.com> wrote:
>
>     Well, the normal shell history stuff.
>     As far as screen goes, you can dump the scrollback and search for
>     your shell prompt, but that's about it.
>     On Sun, Nov 07, 2021 at 09:29:12AM +0400, Vishal Priyatham wrote:
>     > Hi team,
>     >
>     > We are using screen utility on linux server for one of our
>     projects.
>     > We have some issue related to our application and wanted to check
>     what were
>     > some of the commands run in the past which caused the issue.
>     > Is there a way to know the commands run inside the screen session?
>     >
>     >
>     > Regards,
>     > Vishal

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]