Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Output of OS commands to html format

N_RajOct 19 2017 — edited Nov 10 2017

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,

This post has been answered by Nik on Oct 20 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2017
Added on Oct 19 2017
14 comments
1,595 views