Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

187
Views
Use a promise to exit a program

I'm using the solution found here (How to change url on Chromium kiosk mode via ssh) using node.js that is called from a bash script and it works great to change the current URL in chrome. The problem is that the node.js script hangs after it does it's thing. In the script, they say use promise-ws to exit the program then use process.exit().

When I use process.exit() without the promise, the script closes too quickly before passing the argument to chrome. I am new to js and need some help coding the promise.

Thanks for any suggestions.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!