I am trying to use top
to prove that my test
process on a Leopardboard (embedded-linux) target has a memory leak. Why does this command
/ # top -b | grep test >> /media/top.txt &
seem to die immediately like this?
[3]+ Stopped (tty output) top -b | grep test 1>>/media/top.txt
I see that is has produced an empty file
-rwxr-xr-x 1 root root 0 Jan 15 15:35 top.txt
Top does run in interactive mode producing output like this
1079 1 root S 83668 289% 17% test
but I need to record what happens to the memory for this process over a long period of time to file.