interresting how too? (telnet)

  • Thread starter Thread starter Henry
  • Start date Start date
H

Henry

Ladies & gentlemen.

I have an interesting how 2 question, which I hope someone
can help me with. I need to connect to a unix server,
issue a command and collect the output for futher use.
This is what I want to achieve:
1) telnet to server
2) issue ps -ef |grep xxxxx command
3) disconnect from server
4) use the output of 2 in the rest of my script.
To summarize I would like to use something similar to the
ftp -s function. Any suggestions?????
Thanks
Henry
 
investigate perl for something like this, as I have my doubts as to whether
batch is capable of wrapping and marshalling the I/O to the telnet program,
and then working with the data.

NuTs
 
hop on over to www.activestate.com and sign up for the win32-perl-user
group. You can ask very pointed questions there, and most of the folks are
awsome. Flame wars generally arent seen on the mailing list.

I know that there is a telnet module for perl that does exactly what you are
looking for. I just dont have a clue as to how to do it.

You might also want to google for " perl telnet wrapper" and see what you
come up with.

Perl take a bit to get used to ( i taught myself ) but I have found it to be
incredibly useful as an administrator and as a developer.

Cheers,

NuTs
 
Back
Top