Hi All,
We have Oracle Linux 6.5, Solaris 10 and Aix 6.We have databases on that.
I am asked to prepare a shell script to find Top 10 CPU process and Top 10 Memory process etc....The output fileshould be html format. The output file contains Column name and its value.( when execute ps -ef| grep pmon ,it won't show column value the output file shouldn't like this )
I tried this command for Top 10 CPU consuming process "ps auxww | head -10" and ps -ef | grep pmon for testing purpose.
I can redirect easily to text file with out any issues. But i need html format.
But while redirecting to html format,facing many issues like space between the same column value ( For Ex : stime -> Sep 19 ,due to space between Sep 19,it considers two values , but actually it is a single value )
Any Suggestions and sample scripts.
Thanks & Regards,