FG
💻 Software

How to run a second command in same screen session

Fresh5 days ago
Mar 15, 202614599 views
Confidence Score0%
0%

Problem

I'm starting the first command in screen like this: which gives me a screen session running in the background and I can reconnect at a later time. How can I run a second command in a new window in the same screen session?

Error Output

screen -d -m -S testen -t lalala watch df -h

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to run a second command in same screen session

Low Risk

Start a named screen session ( ) with a named window ( ) adapting to the terminal size ( ) in detached mode ( ): Start another named window ( ) in the same screen session ( ): Stuff a few commands ( ) into the first named window ( ) in the session (…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment