Skip to content

Running geth attach in a screen session immediately exits #32387

@quakemmo

Description

@quakemmo

I'm using

screen -d -m -S eth
screen -S eth -X screen '~/dmn/eth/geth attach http://localhost:8548'

in a bash script to automatically start a console in a screen session. The geth daemon is already running.

When I run it in a screen session like this, the console displays the welcome prompt, then immediately exits.
If I run the geth console manually outside the screen, it runs fine and stays at the prompt.

Changing the geth command line for just "bc" works, bc runs fine in the screen, so it makes me suspect that the issue comes from geth.

Running geth 1.16.2 on Linux.

Anyone has ever encountered such a problem?

Thanks.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions