Hello again srinigs,

There is no need to apologize, by defining a well formatted question you help people to understand your problem and provide you with feedback faster. Any way enough said, let's code.

Now that you provide us with more information, there was a recent question that I would suggest you read all threads and answers from it Simple SSH based chat client.

I strongly suggest to read all threads. The question includes a variety of working answers with and without root access to the remote machine(s).

You also mentioned db I assume you mean database (e.g. SQL or MySQL) to get information for multiple device(s).

As an alternative I have posted a solution with conf.ini files where you can use to store your data instead of a db. In case you want to interact with multiple devices.

Any problems you have do not hesitate to ask, this is the reason that the community exists. For all of us there are difficult tasks and people who might have solve this tasks before ;), so feel free to ask.

Best of luck with your coding task.

Seeking for Perl wisdom...on the process of learning...not there...yet!

In reply to Re^2: Executing after logging into a remote machine by thanos1983
in thread Executing after logging into a remote machine by srinigs

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.