On Mon, 24 Oct 2005, dc wrote:

Thanks ...
But if i am not wrong, expect is written in Tcl/tk scripting language.
Can I achieve the same using just shell script.

Expect will be the more robust solution, but you might be able to get nc to do what you need.

-f
http://www.blackant.net/



Rgds,
DC

On 10/24/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

In a message dated 10/24/2005 4:39:54 AM Eastern Standard Time,
[EMAIL PROTECTED] writes:

Hi ,
I was trying to automate the telnet session using solaris shell script
(here document.)
But the problem is telnet gives Login and Password prompt. How do i
automate
these actions.
You need a tool called 'expect'. If I recall correctly, it's on the
goodies
CD that comes with Solaris. If not, it's easily downloadable.

Expect is important enough to merit its own OReilly book.

_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to