hi everyone.. i'm a noob on shell programming and am doing some scripting.. but i really have a lot of trouble getting started.. i need to write a simple shell scripting.. it goes something like this..
for eg if i press '1', it'll show processes for the current user namely
- process id
- parent process id
- user name
- command
- CPU utilization (in desc)
- process start time
- process status
and output it to a file named whatever.txt..
if i press '2' it reports those processes selected in (1) with CPU utilization not equal to 0
if i press '3' it displays all the child processes (with process id, command) of the user specified process
if i press '4' it kills all the process with specified program(command) name on behalf of the user
can all these be done..? argh..
really need a headstart on how to do these.. any help/advice would be appreciated.. thanks..