Skip to content
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

Run commands in the background #4

Closed
aslakhellesoy opened this issue Mar 8, 2010 · 5 comments
Closed

Run commands in the background #4

aslakhellesoy opened this issue Mar 8, 2010 · 5 comments

Comments

@aslakhellesoy
Copy link
Contributor

Sometimes it's necessary to run a process in the background. This can be because we want to interact with it from a different process. Examples:

  • Sending data to the process via STDIN
  • Run another process that needs the background process to be running in order to work

We can reuse some code from Cucumber:

http://github.com/aslakhellesoy/cucumber/blob/master/features/step_definitions/cucumber_steps.rb#L35
http://github.com/aslakhellesoy/cucumber/blob/master/features/support/env.rb#L97

@bmabey
Copy link

bmabey commented Mar 13, 2010

Yo, I have a more mature version of that code sitting around in some of my other projects... My intention was to add it to my clispec project but never got around to it. Want me do to a patch for it?

@aslakhellesoy
Copy link
Contributor Author

Seen my branch? http://github.com/aslakhellesoy/aruba/network

@bmabey
Copy link

bmabey commented Mar 13, 2010

No I hadn't. That looks great!

@msassak
Copy link
Member

msassak commented Sep 28, 2010

I just added some basic support for interacting with shell-like processes to my fork of Aruba here: http://github.com/msassak/aruba/tree/interactive. The biggish news is that I replaced the process management code with timcharper's background_process gem. It's still a bit rough around the edges, but the basics work (see features/interactive.feature).

I'm going to be working on background processes and managing output from different processes in the same scenario next.

@aslakhellesoy
Copy link
Contributor Author

Merged. Closed by 16fa7be.

dchelimsky pushed a commit that referenced this issue Apr 17, 2011
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants