On Wed, Dec 24, 2014 at 02:09, Philippe Meunier wrote:

> #!/bin/ksh -ex

You tell ksh to exit on error.

> while true; do ps -lww | egrep startxBOGUS | egrep --line-buffered -v
> egrep; sleep 1; done &

You run a command (egrep) that exits with an error.

Reply via email to