hi,
I've got two commands foo and bar.
foo runs for a long time without stdin or stdout/stderr activity. bar is a client of foo and runs with stdout/stderr but no stdin activity.
I'd like to run them from one shell, being able to kill both with ctrl-c, and to see the output from bar as it occurs.
i.e. something like this sequence
foo & bar kill -9
but without having to manually do the kill - instead it just happens on ctrl-c
is there a way of scripting this?
thanks