![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to check if a process is running in a server from shell script. | debu | UNIX for Advanced & Expert Users | 2 | 01-24-2008 05:19 PM |
| command to find out total size of a specific file size (spread over the server) | abhinov | SUN Solaris | 3 | 08-08-2007 06:48 AM |
| connect to server using ssh | tungaw2004 | UNIX for Dummies Questions & Answers | 0 | 07-27-2007 10:49 PM |
| Connect From VB to SQL Server | Than Chanroeun | SUN Solaris | 0 | 08-04-2006 11:48 AM |
| i want to pass the connect fd to child process,how can i do ti? | hit | High Level Programming | 6 | 07-18-2002 02:45 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
for a start, the top command will fail unless you tell it you want to run it in batch mode, as sshd will not provide a valid $TERM variable.
apart form that something along the lines of : Code:
for serv in host1 host2 host3
do
echo
echo $serv
ssh $serv top -n 1 -b |grep SS |awk '{print $6}'| cut -c 1-4
done
the parameters to top are -n 1 run 1 iteration and quit -b run in batch mode, don't look for a terminal |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|