Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl for automation, ideas, suggestions?

Status
Not open for further replies.

aabiir

Programmer
Nov 1, 2005
4
US
Hello everyone,
My first post here so please forgive any faux pas. I am wondering of ways to automate the following task.

Currently, I am ssh'ing into a license server and entering some standard info which this server uses to generate a license key. This is an interactive command line based process.

How can I get perl to do this for me? How do I have it interact with the server when, say it is prompted for number of users needing a license?

I was brainstorming, thought you guys might be able to give me some ideas here.

Thanks.
- striving for perlfection

 
If you're happy that you're solving the correct problem (and Trojan is a very wise man) there is a module, Net::SSH, which allows you to initiate and send commands commands over an ssh session and process the responses.

Yours,

fish

["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs.["]
--Maur
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top