You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why does dcli exec -- ./script.sh not block until sleep finishes? I'm not actually intending to use sleep in my script but this reflects the problem I'm facing (I'm actually calling an interactive process)
I initially thought that it had to do with spawn not blocking but I've failed to reproduce it using a minimal example (execution waits until sleep returns):
// app.js , run it using 'node app.js'constspawn=require('child_process').spawnconstchild=spawn('sleep',['10'],{stdio: 'inherit',shell: true})child.on('exit',c=>console.log(c))```</div>
The text was updated successfully, but these errors were encountered:
Discussed in #262
Originally posted by sbaldrich June 10, 2024
Given this
script.sh
file:Why does
dcli exec -- ./script.sh
not block untilsleep
finishes? I'm not actually intending to usesleep
in my script but this reflects the problem I'm facing (I'm actually calling an interactive process)I initially thought that it had to do with spawn not blocking but I've failed to reproduce it using a minimal example (execution waits until sleep returns):
The text was updated successfully, but these errors were encountered: