Re: get information from server

2012-04-22 Thread David Christensen
On 04/22/2012 09:29 AM, lina wrote: How do I use ssh p3600 'top' It shows me TERM environment variable not set. Please read the manual page for top: $ man top Try the "batch mode operation" and "number of iterations" options: $ ssh p3600 top -b -n 1 HTH, David -- To unsubscribe,

Re: get information from server

2012-04-22 Thread lina
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 informa

Re: get information from server

2012-04-21 Thread David Christensen
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, anythi

Re: get information from server

2012-04-21 Thread Jim Gibson
On Apr 20, 2012, at 5:42 AM, lina wrote: > Hi, > > I used to ssh Mars (servers's name) and then cd to some directory and check > some file's modification time. > > Can I do it locally with perl, without ssh? > > What I came so far is equal to null, but I am still google-ing. > > Thanks ahead

Re: get information from server

2012-04-21 Thread lina
On Saturday 21,April,2012 02:42 AM, David Christensen wrote: On 04/20/2012 05:42 AM, lina wrote: I used to ssh Mars (servers's name) and then cd to some directory and check some file's modification time. Can I do it locally with perl, without ssh? A local Perl script will need some way to read

Re: get information from server

2012-04-20 Thread David Christensen
On 04/20/2012 05:42 AM, lina wrote: I used to ssh Mars (servers's name) and then cd to some directory and check some file's modification time. Can I do it locally with perl, without ssh? A local Perl script will need some way to read the mtime of the file on the remote host. If you get to the