Re: spawn sh -c "ssh -T $host -l $user <$JOBSCRIPT" #HowCanI elim sh?



In article <1217378101.478578@xxxxxxxxxxxx>,
Name withheld by request <anonb6e9@xxxxxxxxxxxx> wrote:
pls consider this snip of expect:

spawn /bin/bash -c "ssh -T $host -l $user <$JOBSCRIPT"
# had to use the 'sh -c' approach support the '<' redirection

# ====================================================================
# wait for passwd prompt
# normal next send enters password
# ====================================================================
--snip

aside:
The use of password authentication is deliberate - in cygwin
( for a domain user w/a properly set up /etc/group), password
authentication results in the best credentials (ability to use
rights granted in domain groups).
.