Hacker News new | past | comments | ask | show | jobs | submit login

Ah, yep. This does work, and prints out both "one" and "two":

  printf "echo one\nsleep 3\n" > s1;(bash s1 &);sleep 1 && printf "echo two\n" >> s1
That's interesting. And changing the "sleep 1" to "sleep 4" make it only output "one".



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: