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
#!/bin/sh PS -a
Try the following: while true do date sleep 15 done
yea i think kids could write and script.... i think its cool my friends like to write in script lolz
You write a script by writing there name then writing what they say simple
The prefix script- means to write.
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.
input number print number + 1
The prefix script- means to write.
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.
input number for loop = 1 to 3 inclusive print number end for
Write it.
seq 1 2 99