Hi All,
I am trying to write a script to list all users and their processes. I cant seem to find out how to link the PID to the user. For example if i run ps -a I get a nice list of all the processes running and their PID, but no information about which user is running them.
If i use w i... (17 Replies)
Hi guys,
I'm writing a script to display all the current logged on users and the processes they're running, output to a file. The output will look similar to this:
User1 (Real name not login name)
PID TTY TIME CMD
3179 pts/3 00:00:00 vim
User2
PID TTY TIME ... (2 Replies)
hello, i am VERY new to this whole script world. I need to come up with a script that will email a user if they have an idle process past 500 minutes...any suggestions??? Thanks so much. (0 Replies)
I am trying to write a script to list all users and their processes. I cant seem to find out how to link the PID to the user. For example if i run ps -a I get a nice list of all the processes running and their PID, but no information about which user is running them. I need the users real name not... (3 Replies)
Is there a way to monitor certain processes and if they hang too long to kill them, but certain scripts which are expected to take a long time to let them go?
Thank you
Richard (4 Replies)
hello All,
i am trying to get the each users by with thier processing. I have try it in several ways but i am not getting thier my code is
#!bin/bash/
users=`cat /etc/passwd | cut -d':' -f5`
onlineusers=`users | tr '.' ' '`
$onlineusers | while read `$users`
do
echo `ps -U $users`... (12 Replies)
Hi
Is there an easy way to identify and group currently running processes into OS processes and APP processes. Not all applications are installed as packages.
Any free tools or scripts to do this?
Many thanks. (2 Replies)
Hello,
What i have to do is make a top 10 list of users sorted by the number of processes opened at a given time. Can anyone help me with finding out for a given moment, for all users how many processes each had opened? (5 Replies)
Is it possible to get a list of users sorted by the number of processes executed by each.
I have a HP - UX server with 2800 processes running currently.
And I want to know the number of processes owned by each person logged in to that server.something like below:
user1 : 150 Processes
user2 :... (2 Replies)
I would like to get an opinion for my solution for this task and get feedback about better approach or mistakes I have made.
1. The problem statement, all variables and given/known data:
The task is to create a script which prints information about users whose names are specified in the... (2 Replies)
Discussion started by: kornfan
2 Replies
LEARN ABOUT DEBIAN
atuservalid
atuser(3) AtFS Toolkit Library atuser(3)NAME
atUserValid, atScanUser, atUserName, atUserUid - user handling
SYNOPSIS
#include <atfs.h>
#include <atfstk.h>
void atScanUser (char *userName; Af_user *resultUser);
char* atUserName (Af_user *user);
Uid_t atUserUid (Af_user *user);
int atUserValid (Af_user *user);
DESCRIPTION
atScanUser scans the given string userName and tries to derive an AtFS user identification (resultUser) from it. It does not verify the
existence of a corresponding UNIX (/etc/passwd) user entry. Use atUserUid to test that. atScanUser understands the following formats:
user When the string does not contain an at sign, it is considered to be a plain user name from the current host and domain.
user@host In the case that the part after the at sign doe not contain a period, it is assumed to be a hostname. Domain is the current
domain.
user@host.domain
This format can only be recognized, when the given domain is equal to the current domain, and the hostname remains as rest
between the at sign and domain name.
user@domain
An user identification string with a domain name different to the local domain is treated as user@domain, although this might
be wrong.
atUserName returns a string of the form user@domain generated from the given user structure. If no domain name is given in the structure,
it returns user@host instead. With no host and no domain name, just user is returned. The result string resides in static memory and will
be overwritten on subsequent calls.
atUserUid tries to map the given user structure to a UNIX user identification. It returns the uid on success, -1 otherwise.
atUserValid checks the given user structure for plausibility. It returns FALSE on fauilure, a non null value on success.
AtFStk-1.12 Fri Jun 25 16:39:50 1993 atuser(3)