Manual Reference Pages - vips (1)
vips - greps ps output for vi/vim processes
1.2 - 2007/02/18 16:22:39
vips [-x]* [-X]*
Q&D script to check ps output for vi/vim processes. Handy on MacOSX
where lots of processes contain the string "vi".
does set -x (may be used in functions and external script calls) (see DIAGNOSTICS below)
sets debugging level--the number of times -X is specified" (see DIAGNOSTICS below)
First the header from ps. Then any vi/vim lines. Then a count of the number of lines.
The header and count lines will always be printed.
RUSER PID PPID %CPU %MEM RSS RSZ VSZ TTY COMMAND
jjohnson 11575 10652 0.0 0.1 1668 1668 19132 stdin vi vips
jjohnson 18805 11372 0.0 0.1 1396 1396 19132 ttyp8 /usr/bin/vi
2 vi/vim processes were found
- It does not try too hard to exclude "vi" or "vim" strings appearing for other reasons (i.e. in a pathname or arguments).
- Specifically tested only on Linux, Darwin, and SunOS of unspecified versions.
$Id: vips,v 1.2 2007/02/18 16:22:39 earneson Exp $
$Author: earneson $
$Date: 2007/02/18 16:22:39 $
$Revision: 1.2 $
$Source: /Users/cvs/scripts/all/Users/earneson/bin/vips,v $
$State: Exp $
rwxr-xr-x userUID staff
40 - The localize script could not be found. Global machine settings can not be set.
51 - An unknown option was passed to the script, or syntax of the parameters is wrong.
51 - Unknown option >$errflag<
56 - The USAGE was requested using -z or -?.
Generated by manServer 1.07 from vips.1 using man macros. With tweaks by Edwin Arneson.
|\\$4 ||vips (1) ||EJA UTILITY |