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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:24:28+00:00 2026-06-02T02:24:28+00:00

So there is a common problem that I have found in bash. Let’s say

  • 0

So there is a common problem that I have found in bash. Let’s say you start a program X and you want to either wait until it has completed or until it has loaded before initiating program Y. What is the pattern for doing this?


Just thinking… I guess you could do X && Y in the case that you’re waiting for X to complete. But I still don’t know about what to do in order to determine if the program X has “loaded”. (And I know I’m using “loaded” very generically here, so tell me if I need to be more specific.)


Loaded – should mean that the program has reached “the state” that I’m looking for and has somehow left evidence, for instance by creating a “loaded” file as a token (which it will presumably remove upon shutdown). So how then do I check in bash to see if that token exists. Do I write a while look that checks for it’s existence indefinitely and then completes only upon finding the “loaded” token?

  • 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-06-02T02:24:30+00:00Added an answer on June 2, 2026 at 2:24 am

    Why not just call something like X && checkIfXLoaded && Y?

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

Sidebar

Related Questions

I have the presumably common problem of having elements that I wish to place
It appears after much searching that there seems to be a common problem when
Is there a common interface in Python that I could derive from to modify
I think I have what must be a very common problem to solve and
I have a configuration that doesn't seem too common on the Internets (PHP with
This seems like a pretty common problem, but I haven't found any sort of
What are the most common problems that can be solved with both these data
Is there a common conversion function to convert a integer type object to a
Are there any Common Lisp implementations for .Net?
Is there a common way to get the current time in or with milliseconds?

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.