I have a nodejs script that produce some output like that (it scrape website and output url) :
process.stdout.write(url)
And I want my bash to use this url (basically it just curl the url) and do some stuff.
I try node myapp | bash mybash
==> Error: write EPIPE
I try node myapp | grep 'www'
==> I see url spawn
I probably missing something about stdin stdout
For the moment, in my bash I just echo $1