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













1















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?










share|improve this question
























  • 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















1















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?










share|improve this question
























  • 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













1












1








1








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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










2 Answers
2






active

oldest

votes


















1














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.







share|improve this answer






























    0














    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





    share|improve this answer








    New contributor




    Rod Nussbaumer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.



















      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
      );



      );













      draft saved

      draft discarded


















      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









      1














      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.







      share|improve this answer



























        1














        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.







        share|improve this answer

























          1












          1








          1







          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.







          share|improve this answer













          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.








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 7 '15 at 20:30









          yetiyeti

          2,40611426




          2,40611426























              0














              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





              share|improve this answer








              New contributor




              Rod Nussbaumer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.
























                0














                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





                share|improve this answer








                New contributor




                Rod Nussbaumer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                  0












                  0








                  0







                  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





                  share|improve this answer








                  New contributor




                  Rod Nussbaumer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  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






                  share|improve this answer








                  New contributor




                  Rod Nussbaumer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  Rod Nussbaumer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered yesterday









                  Rod NussbaumerRod Nussbaumer

                  1




                  1




                  New contributor




                  Rod Nussbaumer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Rod Nussbaumer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Rod Nussbaumer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                      Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                      Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.