evfwcqcg
evfwcqcg

Reputation: 16345

Run bundle install as a background process

I want to run bundle install as a background process and hide its output from the terminal. Currently I do this

bundle > /dev/null &

but maybe there is a better and shorter way do achieve the same result?

Upvotes: 1

Views: 422

Answers (1)

Kyle Burton
Kyle Burton

Reputation: 27558

If you really aren't concerned with its output (and whether it succeeds or fails), you can also redirect the stderr of the process:

bundle >/dev/null 2>/dev/null &

Upvotes: 3

Related Questions