Is there an elegant way, in the shell, to say “run this program until this other program is finished”?
I know I could run a thing, get a PID and then append a command with “&& kill pid” or something but that feels clunky.
Is there an elegant way, in the shell, to say “run this program until this other program is finished”?
I know I could run a thing, get a PID and then append a command with “&& kill pid” or something but that feels clunky.
@mhoye isn’t that what the ‘wait’ cmd does?
Edit: oh I understand what you’re saying. That sounds more complicated and now I also want to know if there’s an existing solution.