Set up default GNU screen “screens”Cron & Gnu Screen - Trouble with detached screenOpening multiple split windows with GNU screen with single bash scriptHow to make a comprehensive set of possibilities for defining GNU-screen “command characters”?Screen session started from rc.local is not visible in screen -ls under rootGNU Screen & Serial console: how to automatically set correct window height?Programmatically run background tasks in a split screen?Save GNU Screen session layout after rebootStarting multiple Screen windows from shell script uses wrong configurationautomate the title of gnu screen windowsDesktop environment that raises terminal with gnu-screen instead of starting new one
How can I use the arrow sign in my bash prompt?
Can criminal fraud exist without damages?
Bash method for viewing beginning and end of file
Lay out the Carpet
At which point does a character regain all their Hit Dice?
Was Spock the First Vulcan in Starfleet?
Is there a problem with hiding "forgot password" until it's needed?
Increase performance creating Mandelbrot set in python
Why did Kant, Hegel, and Adorno leave some words and phrases in the Greek alphabet?
Do I need a multiple entry visa for a trip UK -> Sweden -> UK?
How does residential electricity work?
Opposite of a diet
apt-get update is failing in debian
What is the oldest known work of fiction?
What would be the benefits of having both a state and local currencies?
Modify casing of marked letters
Why does John Bercow say “unlock” after reading out the results of a vote?
Can somebody explain Brexit in a few child-proof sentences?
What would happen if the UK refused to take part in EU Parliamentary elections?
Understanding "audieritis" in Psalm 94
Teaching indefinite integrals that require special-casing
Are there any comparative studies done between Ashtavakra Gita and Buddhim?
Is it correct to write "is not focus on"?
How do I define a right arrow with bar in LaTeX?
Set up default GNU screen “screens”
Cron & Gnu Screen - Trouble with detached screenOpening multiple split windows with GNU screen with single bash scriptHow to make a comprehensive set of possibilities for defining GNU-screen “command characters”?Screen session started from rc.local is not visible in screen -ls under rootGNU Screen & Serial console: how to automatically set correct window height?Programmatically run background tasks in a split screen?Save GNU Screen session layout after rebootStarting multiple Screen windows from shell script uses wrong configurationautomate the title of gnu screen windowsDesktop environment that raises terminal with gnu-screen instead of starting new one
I would like to set up GNU screen on my headless CentOS box such that when it starts up with some screens already running.
My .bashrc
file runs screen on the first login with screen -xRR
and I would like htop
and various logs to be automatically opened.
Is it also possible to assign titles to the screens at the same time?
gnu-screen
add a comment |
I would like to set up GNU screen on my headless CentOS box such that when it starts up with some screens already running.
My .bashrc
file runs screen on the first login with screen -xRR
and I would like htop
and various logs to be automatically opened.
Is it also possible to assign titles to the screens at the same time?
gnu-screen
man screen
option-S
and-m
– ott--
Jul 7 '15 at 21:01
Hmm, I can't edit that anymore. Take-t title
instead of-S
.
– ott--
Jul 7 '15 at 21:08
add a comment |
I would like to set up GNU screen on my headless CentOS box such that when it starts up with some screens already running.
My .bashrc
file runs screen on the first login with screen -xRR
and I would like htop
and various logs to be automatically opened.
Is it also possible to assign titles to the screens at the same time?
gnu-screen
I would like to set up GNU screen on my headless CentOS box such that when it starts up with some screens already running.
My .bashrc
file runs screen on the first login with screen -xRR
and I would like htop
and various logs to be automatically opened.
Is it also possible to assign titles to the screens at the same time?
gnu-screen
gnu-screen
edited Dec 20 '18 at 0:10
Rui F Ribeiro
41.8k1483142
41.8k1483142
asked Jul 7 '15 at 18:54
robjtederobjtede
1386
1386
man screen
option-S
and-m
– ott--
Jul 7 '15 at 21:01
Hmm, I can't edit that anymore. Take-t title
instead of-S
.
– ott--
Jul 7 '15 at 21:08
add a comment |
man screen
option-S
and-m
– ott--
Jul 7 '15 at 21:01
Hmm, I can't edit that anymore. Take-t title
instead of-S
.
– ott--
Jul 7 '15 at 21:08
man screen
option -S
and -m
– ott--
Jul 7 '15 at 21:01
man screen
option -S
and -m
– ott--
Jul 7 '15 at 21:01
Hmm, I can't edit that anymore. Take
-t title
instead of -S
.– ott--
Jul 7 '15 at 21:08
Hmm, I can't edit that anymore. Take
-t title
instead of -S
.– ott--
Jul 7 '15 at 21:08
add a comment |
2 Answers
2
active
oldest
votes
You can start programs in screens by using the screen
command in your ~/.screenrc
and these commands are accepting options.
Quoting man 1 screen
:
Thus, if your ".screenrc" contains the lines
# example for .screenrc:
screen 1
screen -fn -t foobar -L 2 telnet foobar
screen creates a shell window (in window #1) and a window with a TELNET connection to the machine foobar (with no flow-control using the title "foobar" in window #2) and will write a logfile ("screenlog.2") of the telnet session.
add a comment |
I've used this, in an init.d script:
su someUserName -c 'screen -S someSesseionName -dm'
Following that, you can use the stuff option to launch processes and do various other things to the screen session.
export NEWLINE=$(echo -ne '15')
su someUserName -c "screen -S someSesseionName -p 0 -X stuff 'ls -lash$NEWLINE'"
There may be settings required in /etc/screenrc to enable multiuser mode for this to work. I've been using this for years to launch perpetual processes that permit ongoing user interaction on headless x86 Linux hosts. It allows post-boot logins to access the sessions by attaching to them as normal users:
screen -S someUserName/someSesseionName -x
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f214444%2fset-up-default-gnu-screen-screens%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can start programs in screens by using the screen
command in your ~/.screenrc
and these commands are accepting options.
Quoting man 1 screen
:
Thus, if your ".screenrc" contains the lines
# example for .screenrc:
screen 1
screen -fn -t foobar -L 2 telnet foobar
screen creates a shell window (in window #1) and a window with a TELNET connection to the machine foobar (with no flow-control using the title "foobar" in window #2) and will write a logfile ("screenlog.2") of the telnet session.
add a comment |
You can start programs in screens by using the screen
command in your ~/.screenrc
and these commands are accepting options.
Quoting man 1 screen
:
Thus, if your ".screenrc" contains the lines
# example for .screenrc:
screen 1
screen -fn -t foobar -L 2 telnet foobar
screen creates a shell window (in window #1) and a window with a TELNET connection to the machine foobar (with no flow-control using the title "foobar" in window #2) and will write a logfile ("screenlog.2") of the telnet session.
add a comment |
You can start programs in screens by using the screen
command in your ~/.screenrc
and these commands are accepting options.
Quoting man 1 screen
:
Thus, if your ".screenrc" contains the lines
# example for .screenrc:
screen 1
screen -fn -t foobar -L 2 telnet foobar
screen creates a shell window (in window #1) and a window with a TELNET connection to the machine foobar (with no flow-control using the title "foobar" in window #2) and will write a logfile ("screenlog.2") of the telnet session.
You can start programs in screens by using the screen
command in your ~/.screenrc
and these commands are accepting options.
Quoting man 1 screen
:
Thus, if your ".screenrc" contains the lines
# example for .screenrc:
screen 1
screen -fn -t foobar -L 2 telnet foobar
screen creates a shell window (in window #1) and a window with a TELNET connection to the machine foobar (with no flow-control using the title "foobar" in window #2) and will write a logfile ("screenlog.2") of the telnet session.
answered Jul 7 '15 at 20:30
yetiyeti
2,40611426
2,40611426
add a comment |
add a comment |
I've used this, in an init.d script:
su someUserName -c 'screen -S someSesseionName -dm'
Following that, you can use the stuff option to launch processes and do various other things to the screen session.
export NEWLINE=$(echo -ne '15')
su someUserName -c "screen -S someSesseionName -p 0 -X stuff 'ls -lash$NEWLINE'"
There may be settings required in /etc/screenrc to enable multiuser mode for this to work. I've been using this for years to launch perpetual processes that permit ongoing user interaction on headless x86 Linux hosts. It allows post-boot logins to access the sessions by attaching to them as normal users:
screen -S someUserName/someSesseionName -x
New contributor
add a comment |
I've used this, in an init.d script:
su someUserName -c 'screen -S someSesseionName -dm'
Following that, you can use the stuff option to launch processes and do various other things to the screen session.
export NEWLINE=$(echo -ne '15')
su someUserName -c "screen -S someSesseionName -p 0 -X stuff 'ls -lash$NEWLINE'"
There may be settings required in /etc/screenrc to enable multiuser mode for this to work. I've been using this for years to launch perpetual processes that permit ongoing user interaction on headless x86 Linux hosts. It allows post-boot logins to access the sessions by attaching to them as normal users:
screen -S someUserName/someSesseionName -x
New contributor
add a comment |
I've used this, in an init.d script:
su someUserName -c 'screen -S someSesseionName -dm'
Following that, you can use the stuff option to launch processes and do various other things to the screen session.
export NEWLINE=$(echo -ne '15')
su someUserName -c "screen -S someSesseionName -p 0 -X stuff 'ls -lash$NEWLINE'"
There may be settings required in /etc/screenrc to enable multiuser mode for this to work. I've been using this for years to launch perpetual processes that permit ongoing user interaction on headless x86 Linux hosts. It allows post-boot logins to access the sessions by attaching to them as normal users:
screen -S someUserName/someSesseionName -x
New contributor
I've used this, in an init.d script:
su someUserName -c 'screen -S someSesseionName -dm'
Following that, you can use the stuff option to launch processes and do various other things to the screen session.
export NEWLINE=$(echo -ne '15')
su someUserName -c "screen -S someSesseionName -p 0 -X stuff 'ls -lash$NEWLINE'"
There may be settings required in /etc/screenrc to enable multiuser mode for this to work. I've been using this for years to launch perpetual processes that permit ongoing user interaction on headless x86 Linux hosts. It allows post-boot logins to access the sessions by attaching to them as normal users:
screen -S someUserName/someSesseionName -x
New contributor
New contributor
answered yesterday
Rod NussbaumerRod Nussbaumer
1
1
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f214444%2fset-up-default-gnu-screen-screens%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
man screen
option-S
and-m
– ott--
Jul 7 '15 at 21:01
Hmm, I can't edit that anymore. Take
-t title
instead of-S
.– ott--
Jul 7 '15 at 21:08