When I email the output of top to my self it contains a bunch of forgien characters that dont appear if I just output it to the screen. How can I get it not to show thos characters? IE start with "top" and not "[H[J[?7l[mtop"
[H[J[?7l[mtop - 09:56:47 up 6 days, 5:38, 2 users, load average: 0.60, 0.61, 0.62[m[K
Tasks:[m[1m 261 [mtotal,[m[1m 1 [mrunning,[m[1m 232 [msleeping,[m[1m 0 [mstopped,[m[1m 28 [mzombie[m[K
Cpu(s):[m[1m 3.5% [mus,[m[1m 1.0% [msy,[m[1m 0.1% [mni,[m[1m 90.5% [mid,[m[1m 4.6% [mwa,[m[1m 0.0% [mhi,[m[1m 0.2% [msi[m[K
Mem: [m[1m 1034712k [mtotal,[m[1m 1009904k [mused,[m[1m 24808k [mfree,[m[1m 80224k [mbuffers[m[K
Swap:[m[1m 2096440k [mtotal,[m[1m 52184k [mused,[m[1m 2044256k [mfree,[m[1m 470088k [mcached[m[K
[H[J[?7l[mtop - 09:56:47 up 6 days, 5:38, 2 users, load average: 0.60, 0.61, 0.62[m[K
Tasks:[m[1m 261 [mtotal,[m[1m 1 [mrunning,[m[1m 232 [msleeping,[m[1m 0 [mstopped,[m[1m 28 [mzombie[m[K
Cpu(s):[m[1m 3.5% [mus,[m[1m 1.0% [msy,[m[1m 0.1% [mni,[m[1m 90.5% [mid,[m[1m 4.6% [mwa,[m[1m 0.0% [mhi,[m[1m 0.2% [msi[m[K
Mem: [m[1m 1034712k [mtotal,[m[1m 1009904k [mused,[m[1m 24808k [mfree,[m[1m 80224k [mbuffers[m[K
Swap:[m[1m 2096440k [mtotal,[m[1m 52184k [mused,[m[1m 2044256k [mfree,[m[1m 470088k [mcached[m[K