Hi, I'm trying to learn csh so I've started to do some simple scrips.
Now I'm kinda stuck in this one: I want to do a script that first search, for each user, if there's at least a process with a TIME >= something (30 mins, for example).
There are 2 things that I cant figure out:
in the "foreach" line, how can I specify the values that the PIDs can assume? Does
foreach pid ($PID)
work at all ?
How can I get the time value from each process?
Thank you for your help
Hi GarFunkel, are you learning csh because of a legacy situation? Otherwise I would advise you learn a bourne shell derivative instead, e.g. ksh.
Here are two links that discuss the problems with csh :