There are several utilities to find out what other logged in users are doing on a system, who is currently active, remote host one has used to login, what processes are they runnning and similar such info. In this howto, I will show you how to use 'w' and 'ps' commands to get such information. Such info comes in handy to a sysadmin.
Lets begin with the 'w' command.
The third-party ERP system used by our company has no idle-out facility and we sometimes have issues because users simply walk away from their computers and leave sessions logged in for hours or even go home without logging out.
I'm writing a script in ksh. I need to find all users who have more than N processes and echo them in the shell. N is read from ksh.
I know that I should use ps -elf, but how do I parse it, find users with >N processes, and create an array with them? I'm having a little trouble with arrays in ksh. Maybe a simple solution can help me instead of having to to create an array.
hi all,
i have a problems which is stated below:
Q ) Write a program called collect that runs in the Background and counts the number of users logged in at the end of each interval and also the number of processes run during that interval. Allow the interval to be specified with a -t option (see the previous exercise), with the default 10 minutes.
I am updating an old ASP .NET 3.5 webforms application which uses forms authentication.
Possible Duplicate:
How to list all users and groups on linux?
How to determine all the users on a Linux machine (not only the ones who are logged in)?
I searched and found the following command:
$ cat /etc/passwd | grep "/home" | cut -d: -f1
But my concern is that I could not find root in the output of above command.
Ok, I'm pulling my hair out here. I've one computer setup for 4 different users (one dwm, 3 on xfce). Pulseaudio is working for 2 users...the dwm and 1 of the xfce users. I can't for the life of me get sound working for the other 2 users!! Users are NOT logged in simultaneously...just one at a time. Here's what I've tried:1.
Ok, I'm pulling my hair out here. I've one computer setup for 4 different users (one dwm, 3 on xfce). Pulseaudio is working for 2 users...the dwm and 1 of the xfce users. I can't for the life of me get sound working for the other 2 users!! Users are NOT logged in simultaneously...just one at a time. Here's what I've tried:1.
Hi All,
i want to check all the child processes attached to a specific process.
Say for a example; my process is a java process. then i wanna know what are the processes attached to that java process.
at the moment i use the command # ps aux|grep java ; this gives the details about the currently running java process.