How to run a program in background and also using && to execute another command

I want to run my node app in background and curl simultaneously using &&. I tried the following but they don't work.

node app.js &;curl localhost
node app.js & && curl localhost

But neither work.

2

1 Answer

It's just :

node app.js & curl localhost
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like