linux script for "top" output_Problem Solved!

linux script for
When looking over and over I looked at the script with a bit of a helpful eye.
this was the manual line of command:

top -n 3 >> /home/caligal/dailytoplogs.out

This displayed just fine but then when i ran the script i forgot the command i was running was already going to display output and the echo command which is a display command of sorts was just over kill and mucking it all up.

this was the line of script:

echo `top -n 3` >> /home/caligal/dailytoplogs.out

I took out the echo and single quotes and it runs just fine now. Sorry if i troubled anyone. Have a great day/night --
caligal linux script for linux script for

 

 

 

 

Top