pmap

por | 6 abril, 2011

sh

for PID in `ps -ef| awk '// {print $2}'`; do pmap -x $PID > ${PID}.outfile; done

whitouh sh

ps -eo pid |
while read; do
pid="$(($REPLY))"
pmap > ./pmap_"$pid" -x "$pid" 2>/dev/null ||
printf 'error printing address space map for pid %d\n' "$pid" >&2
done

Categoría: Nix