I have a command in a bash script which I want to capture the output of and then send it to the background. How do I get this done?
The following doesn't seem to work (it keeps blocking and outputs nothing)
result=`node /var/www/animekyun/node/node_modules/peerflix/app.js $torrent -r -q &`
This doesn't seem to work. The output is 2 lines btw which I want to store in a variable as an array. This way I can use the output in the rest of my script.