thiell/test — Issue #49: clush: add option to prevent reading from stdin (like ssh -n)
Author: thiell
Created: 2012-03-03 16:29:11+00:00
State: closed
Labels: Scripts

Add an option to explicitely disallow binding of stdin in order to allow the use of clush in scripts like:

{{{
cat /etc/oddjobd.conf | while read line
do
echo "LINE: $line"
clush -w fortoy3 do_something
done
}}}

ssh offers option''' -n''' to do that (redirects stdin from /dev/null)