develooper Front page | perl.beginners | Postings from April 2012

Re: get information from server

Thread Previous | Thread Next
From:
lina
Date:
April 22, 2012 09:29
Subject:
Re: get information from server
Message ID:
4F9431D7.1010908@gmail.com
On Sunday 22,April,2012 06:20 AM, David Christensen wrote:
> On 04/21/2012 07:51 AM, lina wrote:
>> Thanks, I didn't realize that the ssh p3600 'do something' can do
>> something without being in the server.
>
> Yes -- providing a command to ssh is a very useful. Check out the manual
> page for more information:
>
> $ man ssh
>
>
> Taking it one step further, anything after the command runs on the local
> machine:
>
> $ ssh p3600 'cat .bashrc' | wc
> 23 63 418

Thanks again, David, one more question,

How do I use
ssh p3600 'top'

Actually I am interested the qstat of the job on the server. but "top" 
is the same.

It shows me

TERM environment variable not set.
>
>
> I use this trick on my backup server to create tarballs on remote
> machines and save them locally.

Have a nice Sunday,

Best wishes,
>
>
> David
>
>


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About