Re: How can I open a remote ssh session with perl

2010-08-26 Thread S Pratap Singh
Hello Peter , Did you try executing command "top -cd2", "iostat 1", vmstat 1 10" etc ? Did you get the output of those command ? I am not getting the output of these commands rest works fine for me . Pstree, I am getting partial output Here is the output at my end of pstree command ===

Re: How can I open a remote ssh session with perl

2010-08-26 Thread Peter Scott
On Thu, 26 Aug 2010 11:22:29 +0530, S Pratap Singh wrote: > Here is my code which logs in and performs some task but it does not > show the output of top and pstree command what would i do to get the > output of these commands along with vmstat and iostat > > #!/usr/bin/perl -w > use Net::SSH::Per

Re: How can I open a remote ssh session with perl

2010-08-26 Thread S Pratap Singh
> Hello , > Thanks Shlomi for valuable giving input on my code I will implement that > too. > > But still my question remains same is it possible to open a remote session > with perl and get the output of "top", "vmsate 1 10", "iostat 1" , "yum > install etc", etc .. > > > I am not getting the outp

Re: How can I open a remote ssh session with perl

2010-08-26 Thread Shlomi Fish
Hi Pratap, a few comments on your code. I'm not sure they will help with anything, but they are still appropriate. On Thursday 26 August 2010 08:52:29 S Pratap Singh wrote: > Here is my code which logs in and performs some task but it does not show > the output of top and pstree command what wou