interresting how too? (telnet)

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
 
N

nut cracker

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
 
N

nut cracker

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top