Shell waiting for a command