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

  • Home
  • SEARCH
  • 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 672377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:28:42+00:00 2026-05-14T00:28:42+00:00

I have a script that is supposed to sit there, happily running in a

  • 0

I have a script that is supposed to sit there, happily running in a command window, spewing out data… but I want the window to close automatically when the script finishes or crashes. The script is auto-restarted by other processes and I don’t want my processing machines to become polluted with unused terminals.

In a pinch, I have considered setting up the scripts as windows services that dump their output to a file and just having the command windows “tail -f” the output files, but I”d prefer not to make major changes to a system that already works well.

  • 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-14T00:28:42+00:00Added an answer on May 14, 2026 at 12:28 am

    When you start a command line program that’s the usual behavior. The console will stay there as long as the process is running and once it dies (naturally or by accident) the console window closes.

    This also holds true for scripts, batch files and the like.

    If you explicitly run cmd with a batch file or program, then you should provide the /c argument instead of /k.

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

Sidebar

Related Questions

I have a FileMaker script which calculates a value. I have 1 record from
Hello generous computerists! So I have a launchd plist item that is calling the
I have a <script> where it adds to the <head> another script. This new
I have an ATL ActiveX control that raises three events (Connected, Authenticated, Disconnected) which
We have an existing certificate issuing application (C#, ASP.NET, JavaScript) that issues certificates to
I have sed running with the following argument fine if I copy and paste
I'm trying to write a simple bash script but something seems wrong, I'm testing
Some background information: We have an ancient web-based document database system where I work,
Hey folks, I have to apologize for my inexperience here, I've been working on
so - I have this Socket (not XMLSocket, just Socket) client. I also have

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.