Hi,
Ive creating the following script to log the level of paging space to a file. But I wondered if there was a more elegant way to achieve this because it looks fairly clumsy to me (and Ive not really used nawk b4)!?
date +"%m%d%H%M%t" > ./ps.tmp
lsps -s | tail -1 | nawk '{print $NF}' >> ./ps.tmp
cat ./ps.tmp|nawk '{ printf("%s%s", $0, (NR % 2) ? " " : "\n"
}' >> ./ps.log
BTW, please let me know if anyone finds this script useful!
Cheers
John (Sudmill)
Ive creating the following script to log the level of paging space to a file. But I wondered if there was a more elegant way to achieve this because it looks fairly clumsy to me (and Ive not really used nawk b4)!?
date +"%m%d%H%M%t" > ./ps.tmp
lsps -s | tail -1 | nawk '{print $NF}' >> ./ps.tmp
cat ./ps.tmp|nawk '{ printf("%s%s", $0, (NR % 2) ? " " : "\n"
BTW, please let me know if anyone finds this script useful!
Cheers
John (Sudmill)