in reply to Re: Re: Perl's Telnet vs. Expect Module
in thread Perl's Telnet vs. Expect Module

It sounds like Expect is the way to go. Below is what I want to do, does Expect still make sense ? I was to "push" a set of scripts to a remote system, execute them, collect logs and move then back to my server, then clean up the remote server. So, script executed remotely is not interactive, but I need to do other actions pre/post executing the script. btw - what is /dev/world ? I don't see it on my Linux/Unix boxes.
  • Comment on Re: Re: Re: Perl's Telnet vs. Expect Module

Replies are listed 'Best First'.
Re: Re: Re: Re: Perl's Telnet vs. Expect Module
by gnork (Scribe) on Dec 03, 2003 at 16:54 UTC
    If you cant see /dev/world, have a look at the Character Devices Section of the linux kernel configuration.

    Check (X) Emulate World
    (You will need to display experimental drivers for that)

    If it is checked, do a 'insmod world' at the commandline. ;o)

    cat /dev/world | perl -e "(/(^.*?\?) 42\!/) && (print $1))"
    errors->(c)
      I'll have to try that at home, I don't have access to rebuild Linux kernels at work but I have a Linux system at home (older RedHat version, 5.x I think). Thanks.