Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 310811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:52:04+00:00 2026-05-12T07:52:04+00:00

I asked a similar question here and got pretty close to what I’m looking

  • 0

I asked a similar question here and got pretty close to what I’m looking for

How to start a process from another application and then open a terminal to that process in gnu screen

…but, this doesn’t quite get to what I’m after, which is starting a process in a new window (not an existing window) in an existing screen session (not a new screen session).

If you are at a command prompt in a screen session, you can do this:

screen [screen options] command param1 param2

But, how do you do it if you are outside the session? For example, if you want to run this as a cronjob?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:52:04+00:00Added an answer on May 12, 2026 at 7:52 am

    When you aren’t in a screen session, you can pass the -X flag to screen to execute a screen command.

    For example, the screen command in screen opens a new window, optionally with a command to execute.

    Assuming you already have screen open somewhere:

    screen -dr -X screen sleep 20
    

    Note that the new window will close once the command (sleep in this case) finishes. If you want to keep it open you could potentially do something like this, which will type ‘date\n’ in the new window:

    screen -dr -X screen
    screen -dr -X stuff "date
    "
    

    The man pages of course have much more detail.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have asked a similar question here and got some answers, so first of
I asked a similar question earlier here , and it got me down the
I recently asked a similar question Close Colorbox iframe after form submit and then
I found this on Google, click here , which someone asked a similar question,
A similar question was asked here but without a satisfying answer. I'm trying to
I saw a similar question asked and answered for ASP.net here How do I
I asked a similar question here a while back but all the answers were
So I asked a similar question yesterday, and got a great response - I'm
I've asked similar question here because I thought the problem was in my custom
I asked a similar question here where I wanted to get a single div

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.