answersLogoWhite

0

Just use the 'PS' command with the option to list processes by user:

PS -u john -f

would list out the processes running as user 'john'. A shell script to do that could be:

#!/bin/ksh

for i in $(users)

do

PS -u $i -f

done

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you write a shell script to enlist the processes being run?

#!/bin/sh PS -a


How do you write a shell script that displays the time every 15 seconds?

Try the following: while true do date sleep 15 done


Should Kids Have To Write In Script?

yea i think kids could write and script.... i think its cool my friends like to write in script lolz


How do you you write a script?

You write a script by writing there name then writing what they say simple


What does The Script mean?

The prefix script- means to write.


How many functions you can write within on script tag?

There does not appear to be a limit for the number of functions you can write within one script tag. However, you must make sure that all you functions have the appropriate beginning and ending markers.


How do you write the pseudo code for an application that accepts a number as input and displays the value that is one more than the number?

input number print number + 1


What does the prefix script mean?

The prefix script- means to write.


Write a shell script to count the number of times is appears in a given text file?

You don't need a shell script to do this; use the 'grep' command with the '-c' option to count the number of occurrences of some pattern.


How do you write the pseudocode for an application that accepts a number as input and displays the number three times?

input number for loop = 1 to 3 inclusive print number end for


How can you make a script?

Write it.


Write a program in shell script to display odd number from 0 to 100?

seq 1 2 99