Dan Uscatu wrote: >echo -e "spawn telnet $ip\nexpect ogin:\nsend $USER\\\r\nexpect >ssword:\nsend $PASS\\\r\nexpect #\ninteract\n" | expect -f - >[...] > >deci telnetul iese imediat. > > Expect-ul iese imediat (pentru ca are un pipe in stdin pe care l-a si golit pe deasupra).
>any idea ? > > Lasa stdinul expectului in pace si da-i scriptul altfel: expect -c "spawn telnet $ip; expect ogin:; send $USER\n; expect assword:; send $PASS\n; interact" --- fm _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
