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 6766663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:51:30+00:00 2026-05-26T14:51:30+00:00

I am dealing with a large data set and it takes some days to

  • 0

I am dealing with a large data set and it takes some days to run, therefore I use nohup to run my script in terminal.
This time I need to first get a raw_input from terminal then by nohup, my codes starts running. Any suggestion how I can do that?

so first I need to get input from terminal like this

$ python myprogram.py 
enter_input: SOMETHING

then the process should be like this:

$nohup python myprogram.py &

But I want to do this in one step via terminal. I hope my explanation is clear 🙂

  • 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-26T14:51:31+00:00Added an answer on May 26, 2026 at 2:51 pm

    I think you shouldn’t your program have read input from stdin, but give it data via its command line.

    So instead of

    startdata = raw_input('enter_input:')
    

    you do

    import sys
    startdata = sys.argv[1]
    

    and you start your program with

    $ nohup python myprogram.py SOMETHING &
    

    and all works the way you want – if I get you right.

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

Sidebar

Related Questions

I am dealing with large amounts of scientific data that are stored in tab
I'm dealing specifically with C++, but this is really language-agnostic. Just to give some
I'm dealing with large data, so finding a good way for reading data is
Currently I am dealing with a large dataset and some queries are executing several
I am dealing with large integral numbers in my script and I want to
As much as i like the eclipse diff/merge perspective, when dealing with large projects
I am dealing with a large codebase that has a lot of classes and
I'm dealing with a large group of entities that store locations. They are displayed
I'm dealing with a large code base that uses the following construct throughout class
Ok, so PHP isn't the best language to be dealing with arbitrarily large integers

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.