@udosw: Ich kann das Problem nicht nachtvollziehen. Es liegt wohl an den von dir benutzten Programmen. Ich habe folgendes versucht:
und die Ausgabe
Ist also alles ok!
Code:
which;which;which;which;which;which;which;which;which;which;which;which; ps|grep which;echo RUN AFTER SLEEP:;sleep 1;ps |grep which;
Code:
[...]
Usage: which [COMMAND ...]
Locate a COMMAND
3172 root Z [which]
3173 root Z [which]
3175 root Z [which]
3176 root Z [which]
3178 root Z [which]
3179 root Z [which]
3181 root Z [which]
3182 root Z [which]
3184 root 1868 R which
3185 root Z [which]
3187 root 1428 S grep which
RUN AFTER SLEEP:
3190 root 1428 S grep which
$
Ist also alles ok!