2 ms·
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 int
by tyingq 5y ago
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".