On Fri, Apr 15, 2011 at 4:15 PM, Andrew Janke <a.janke at gmail.com> wrote: > try this: > > --- > > #! /usr/bin/expect -f > > > spawn ssh cai-george > > # wait for the prompt > expect "$" > send -- "hostname\n" > > interact > > --- Brilliant! Thank you! -- Carlo Hamalainen http://carlo-hamalainen.net