in reply to Executing after logging into a remote machine

Hi All

I'm extremely sorry as the question was not well formed. I was in a bit of a hurry so did not think through it completely (all though I agree that cannot be an excuse for all the gaps in the question :)). But thanks a lot for the replies despite that.

To fill some of the gaps, both the machines are running Red Hat linux and I can use either ssh or rsh to login. I could have used shell script but for the fact that I need to use DBI module for a couple of db operations before I execute the commands on the remote machine. Net::SSH::Perl modules seems to work fine for my requirement

Again, thanks for the replies

  • Comment on Re: Executing after logging into a remote machine

Replies are listed 'Best First'.
Re^2: Executing after logging into a remote machine
by thanos1983 (Parson) on Oct 08, 2014 at 11:28 UTC

    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!