in reply to grabbing logfile excerpts from remote machines

Also, no servers of any kind can exist on the target machines.
...
What I have been trying to do is use open3 to telnet to the target machines, tail the log file specified by the user, print that output to a file opened by the program then exit the telnet session and move on to the next machine.

Well, the machines are apparently already running telnet servers. Are there any other servers that are already running that might make your job easier? Maybe rshd or a webserver?

As it looks like you are interested in syslog, maybe you should explore other options. Setting up a centralized syslog server might make sense in your case.

-sauoq
"My two cents aren't worth a dime.";
  • Comment on Re: grabbing logfile excerpts from remote machines

Replies are listed 'Best First'.
Re: Re: grabbing logfile excerpts from remote machines
by gnu@perl (Pilgrim) on Aug 31, 2002 at 03:06 UTC
    The problem is that I cannot add any services to the machines (large group of them). Pretty much the only service that is running is telnet. As for syslog, that was just put in as a test. There are a large number of logfiles, both system generated and created by in house developed programs.

    Thanks for your input though.