break while [...] loop when a program finishes
I would like to start a program, then start a while loop that stops when the started program finishes, in bash. I thought I could run
Code:
(program ; stat=1) & |
Code:
myprogram & |
thanks
|
Quote:
Code:
while [ -d /proc/$MYPID ] |
Duh, actually I was wondering if my logic was even worse as it's procfs not a real filesystem, so presumably -f would never work even on files in there.
|
Quote:
|
i used -e
|
All times are GMT -5. The time now is 06:57 PM. |