-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to execute command with args after the test finishes #3
Comments
@CyberMew well, I'd run it like this:
So it should wait for the your mongo to be up first (without timeout), once it's up, it'll run whatever you need. |
Starting up an instance of mongodb..
I got the above output following your instructions, but echo wasn't executed. |
the problem is, that it are the 2 separate commands, the 1.st one is the |
Ah I see.. so there is no way for this to wait for a service to be ready and then get it do something? |
@CyberMew unless you run the 1.st command in the background, it's an implicit way of running things in the shell => in sequence Closing, as solution seems to be clarified. Feel free to reopen if more discussion is needed. |
So I'm waiting for my mongo db to startup at dbip:dbport, and once done I need it to run a command to start my server. I was thinking of something like
./wtfc.sh dbip:port runmyserverscript argstomyscripthere
Is this possible with this script or am I mistaken?The text was updated successfully, but these errors were encountered: