Program to capture CPU usage over time [email protected] (Simon Hutchinson)

​I have been asked multiple times if there is an easy way to capture a list of jobs with the amount of CPU they, with a program. The answer is, of course, “Yes”. I thought it was time to give an example of a program example of how I would do this.
My scenario is that I need to capture all the jobs in this partition with the CPU percentage they are using, every five minutes. This data needs to be captured in an output file, or in this example it’s a table. The information I need is:

CPU percent
Job name
Subsystem and the library it is found in
User name
Job type – batch, interactive, prestart, etc.
Function and function type
Job status
CPU time
Time the data was captured

Read more » Read More 

Anyway to assign array values to multiple similar database fields fields? uzumymw_

​I have an array that has 12 numeric elements. Those are to be moved to 12 individual database fields.
The field names goes by field01, field02, and so on upto 12.
Is there a way to move them at once, may be through a loop. I was thinking of using pointers but could not get it working. I am asking this just for my curious mind.
I will probably have to just move them individually if there isn’t any other way.
submitted by /u/uzumymw_[link][comments] Read More 

Verified by MonsterInsights