Hallo, Am Tue, 14 Feb 2006, Juergen Pabst schrieb:
(echo "passwort"; sleep 3; echo "passwort";) | /usr/bin/passwd $user;
Die extra Subshell ist unnoetig. Willst du nur Ausgaben zusammenfassen reicht das dafuer vorgesehene Konstrukt mit {} statt (): { echo "passwort"; sleep 1; echo "passwort"; } | ... ==== man bash ==== Compound Commands (list) list is executed in a subshell. { list; } list is simply executed in the current shell envi ronment. list must be terminated with a newline or semicolon. This is known as a group command. The return status is the exit status of list. ==== HTH, -dnh -- Why do you focus so much on _new_ technology? -- New is better. Is nothink old that is better than new. -- Yes there is. -- Da? Namink one then. -- The Original Pentium versus counting on your fingers. -- Da. Da. "Don't divide. Intel inside" [Sid & Pitr in userfriendly]