[oracle@ptud1 PT8.54]$ more tho.sh
while true
do
free
echo "-----VTG-----------" $(date) "-----------------"
sleep 5
done
[oracle@ptud1 PT8.54]$ sh tho.sh
total used free shared buffers cached
Mem: 8062556 7894200 168356 0 104628 3922636
-/+ buffers/cache: 3866936 4195620
Swap: 8191992 48316 8143676
-----VTG----------- Tue Jul 14 16:58:48 ICT 2015 -----------------
total used free shared buffers cached
Mem: 8062556 7894588 167968 0 104636 3922636
-/+ buffers/cache: 3867316 4195240
Swap: 8191992 48316 8143676
-----VTG----------- Tue Jul 14 16:58:53 ICT 2015 -----------------
total used free shared buffers cached
Mem: 8062556 7894960 167596 0 104640 3922636
-/+ buffers/cache: 3867684 4194872
Swap: 8191992 48316 8143676
-----VTG----------- Tue Jul 14 16:58:58 ICT 2015 -----------------
while true
do
free
echo "-----VTG-----------" $(date) "-----------------"
sleep 5
done
[oracle@ptud1 PT8.54]$ sh tho.sh
total used free shared buffers cached
Mem: 8062556 7894200 168356 0 104628 3922636
-/+ buffers/cache: 3866936 4195620
Swap: 8191992 48316 8143676
-----VTG----------- Tue Jul 14 16:58:48 ICT 2015 -----------------
total used free shared buffers cached
Mem: 8062556 7894588 167968 0 104636 3922636
-/+ buffers/cache: 3867316 4195240
Swap: 8191992 48316 8143676
-----VTG----------- Tue Jul 14 16:58:53 ICT 2015 -----------------
total used free shared buffers cached
Mem: 8062556 7894960 167596 0 104640 3922636
-/+ buffers/cache: 3867684 4194872
Swap: 8191992 48316 8143676
-----VTG----------- Tue Jul 14 16:58:58 ICT 2015 -----------------
0 Comment to "Scripts see Memory Static every 5 seconds"
Post a Comment