Browse Source

stdin redirection

Yann Weber 6 years ago
parent
commit
737721e426
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      mhssh

+ 1
- 1
mhssh View File

@@ -68,5 +68,5 @@ do
68 68
 	stderr=$(echo -ne "$red$(printf "%20s" "$host") : $raz")
69 69
 	{
70 70
 		ssh $host "$@;exit" 2>&3 | sed -e "s/^/$stdout/" 1>&2
71
-	} 3>&1 | sed -e "s/^/$stderr/"
71
+	} <&0 3>&1 | sed -e "s/^/$stderr/"
72 72
 done

Loading…
Cancel
Save