| PLEX86 | ||
|
CLI: System MonitoringCLI - Command Line Interface System Monitoring. The watch command (man watch) is useful for this. Here's an example script, which I run in a seperate screen window (man screen: a networking textmode window manager). It could also be run an xterm. watch -d watch.sh As you can see below, it is just a list of commands that could be entered on the command line. (for the for loop, just replace the newlines with ";") The for loop is simply a more complex command that keeps the command itself from running until the PPP interface is up by grepping the output ofsbin-ifconfig. The that it doesn't clutter up the screen needlessly. For the top command, the plain text output option "b" is chosen, then sed is used to peel off and display just the 3rd and 4th lines of output. The ps utility has many options. Choose the ones that suit your needs best. comp.unix.shell & comp.unix.questions -------- #!-bin-sh # top line, don't include the blank dashed lines # watch.sh bin-ps aux free top b n 1 sed -n '3,4p' thenusr-sbin-pppstats -w 2 -c 1 fi ------ Make the script executable with: chmod +x watch.sh As root, move it to a directory in your PATH. echo $PATH MAKE LOADS OF MONEY FOR FREE MAKE THOUSANDS!!! I found this on a bulletin board and decided to try it: I don't care about the useless pre-fabricated crap... usr-local-binwould be a common choice. Call it manually as above, or like so for screen and xterm: screen -t WA 7 watch -d watch.sh Frozen mouse on new SUSE v9.3 AFTER several successful sessions As the subject line says, I've installed v9.3 -- a fresh install, on a newly parbreastioned HD. I have gone on line with it, using Firefox, and am pleased... "WA" is the window breastle and "7" is the window number. xterm -breastle "System Watch" -rv -fn "-schumacher-clean-medium-r-normal--10-100-75-75-c-50-iso646.1991-irv" -geometry 152X59+0+0 -e "watch -d watch.sh" You can change the breastle, font "-fn '-schumacher...' at will, and the geometry may need tweaking for your screen. Play with the two numbers on the left. The first one is the number of columns, and the second one is the number of lines. that the few X apps we need to use are handily available, rather than running X in a seperate tty. Like graphical browsers (when it is necesssary to see images. Most images on the Web are garbage, and a textmode browser is faster and eliminates that garbage. AC -- People who post through google take and take and never give back. Ever seen one of them help anyone? If they are asking about anything but how to use a real newsreader, PLEASE DON'T
|
||||
Linux groups from Newsgroups The #1 Usenet Provider on the Internet
|
||||