vips - greps ps output for vi/vim processes
Author
Calls
Description
Documented Version
Exit Status
Options
Output
Permissions
Rcs Information
Rcs.sh Version
Restrictions
See Also
Synopsis
Warning(s)
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".
-x does set -x (may be used in functions and external script calls) (see DIAGNOSTICS below) -X 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.
e.g.
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.
00010
$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 -?.
ps, awk
ps(1)
Edwin Arneson
\\$4 | vips (1) | EJA UTILITY |