Re: spawn sh -c "ssh -T $host -l $user <$JOBSCRIPT" #HowCanI elim sh?
- From: anonb6e9@xxxxxxx (Name withheld by request)
- Date: 30 Jul 2008 01:37:55 GMT
In article <1217378101.478578@xxxxxxxxxxxx>,
Name withheld by request <anonb6e9@xxxxxxxxxxxx> wrote:
pls consider this snip of expect:--snip
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
# ====================================================================
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).
.
- References:
- spawn sh -c "ssh -T $host -l $user <$JOBSCRIPT" #HowCanI elim sh?
- From: Name withheld by request
- spawn sh -c "ssh -T $host -l $user <$JOBSCRIPT" #HowCanI elim sh?
- Prev by Date: Re: spawn sh -c "ssh -T $host -l $user <$JOBSCRIPT" #HowCanI elim sh?
- Next by Date: Re: Possible revival of comp.lang.tcl.announce
- Previous by thread: Re: spawn sh -c "ssh -T $host -l $user <$JOBSCRIPT" #HowCanI elim sh?
- Next by thread: Re: Possible revival of comp.lang.tcl.announce
- Index(es):