swap check in linux script
#!/bin/sh
log="schk.log"
if [ -f "$log" ] ; then rm $log ; fi
#for process in ps -ef | grep $pattern | grep -v grep | awk '{print $2}'
for process in ls /proc
do
if [ -f "/proc/$process/status" ] ; then
stat=`grep --color VmSwap /proc/$proces...
maheshupputuri.hashnode.dev1 min read