Web Analytics Made Easy -
StatCounter expect for perl - CodingForum

Announcement

Collapse
No announcement yet.

expect for perl

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • expect for perl

    Hi,
    i am logging in to remote device through ssh using the expect module for perl.
    My code works fine for logging in to the remote machine.
    After that without closing the expect object i send ls command $exp->send("ls")
    i dont get o/p on the command line for ls and it comes out of the root shell logged
    in via ssh to the previous shell where from i am running the perl script.

    can some body help me in this

    or

    can somebody help me in writing a code for the logging in to remote machine through ssh and executing few commands till i go for logout .using expect.
Working...
X