how to fetch idle time


 
Thread Tools Search this Thread
Operating Systems HP-UX how to fetch idle time
# 1  
Old 10-15-2009
Question how to fetch idle time

HP-UX B.11.23 ia64

Hi everyone,

First of all I am new member to this forum. Thankyou all for this forum, it helped me many times.

Coming to my question,I am writing a C program to find the log info of the users who are currently logged in(precisely what who -u do).

I am able to get all the information except the idle time. I used getuts function for getting info. The man page says getuts allows fields like ut_id, ut_type, ut_tv(login time) etc.

Can any one suggest me how to fetch the idle time of users currenly logged in?

Last edited by bhiku matre; 10-15-2009 at 11:55 AM.. Reason: Forgot to mention hp ux version I am on
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need to get average idle time using mpstat

I want to get average idle time of the server using mpstat. The problem I am having is %idle is not in same columns in all the versions of linux. example 1: example 2: I tried below command as generalized solution but as Average as one less column output is not proper. I am... (1 Reply)
Discussion started by: kumarjohn
1 Replies

2. Shell Programming and Scripting

User idle time and kill

Hello.. I have many sleepy users on my Solaris box and need to kill them if they are idle for more than 45 minutes for example...I know who -u gives and the idle time but unable to make a awk line to get the condition perfect. Please help...:wall: (9 Replies)
Discussion started by: wimaxpole
9 Replies

3. Red Hat

Mouse freezing after idle time

Hi All, I am having a problem where my mouse (USB) is freezing after some idle time, and I am having to reboot everytime that happens. I looked in the file /etc/X11/xorg.config to see if there is an entry for mouse and I could not find it. Instead I found the following entry: Section... (8 Replies)
Discussion started by: jxh461
8 Replies

4. UNIX for Advanced & Expert Users

idle time again

I need to find the idle time on a machine in the manner: How long time ago somebody did the last action with mouse or keyboard? Unfortunately "w" doesn't do this. It produced the following output on a machine a user was actually working on with an application: 15# w 15:55:28 up 15 days, ... (1 Reply)
Discussion started by: elbrand
1 Replies

5. UNIX for Advanced & Expert Users

To find idle time of a user

Hi All I need to find the idle time of a user... but my OS seems to be not supporting finger $ finger -sh: finger: command not found I need to find the idle time and perform some other operations... So is there any other way i can find the idle time of a user... $ uname -a... (2 Replies)
Discussion started by: Whiteboard
2 Replies

6. HP-UX

vmstat displays cpu idle time at 100%

Since yesterday the vmstat command is displaying the cpu idle time at 100%At each time interval. It never changes. Not sure what it means other than it Quit calculating that stat. And I'm curious why. Using sar I can display a correctCpu idle percent, but vmstat does not. Any ideas why or... (2 Replies)
Discussion started by: tfrye
2 Replies

7. Shell Programming and Scripting

User Idle Time

Does anyone know how do you determine the user idle time of stdin in order to log the user out for being idle too long. I would like to write a c program to do this but I it is not clear upon how to determine idle time from keyboard input. (9 Replies)
Discussion started by: cpaquette
9 Replies

8. UNIX for Advanced & Expert Users

How To Fetch Time From Putside Source On Unix Platform?

CAN ANY PLESE TEL ME,HOW CAN I FETCH TIME FROM SOME EXTERNAL SOURCE (eg. NETWORK TIME SERVER S 200) ON UNIX PLATFORM,PROVIDED TIME IS COMING FROM SOME IP "X".WHAT CODE SHOULD I RUN IN STARTUP (2 Replies)
Discussion started by: pesty
2 Replies

9. Shell Programming and Scripting

finding idle time of a process

Matez, I have a list of process id's in a text file. I want to know how to find the idle time of a process which are more than 300secs and kill them accordingly. Could you please help me to get these details. I want to write a shell script with this. Thanks..Krish :) (36 Replies)
Discussion started by: Krrishv
36 Replies

10. UNIX for Dummies Questions & Answers

Findout Idle Time Setting

Hi Guru's, How do I find and set the login idle time setting in HP-UX 32? Thanks in advance, Mani (1 Reply)
Discussion started by: jvmani
1 Replies
Login or Register to Ask a Question
AMULEGUI(1)							     aMuleGUI							       AMULEGUI(1)

amulegui - aMule control program with GUI

SYNOPSIS
amulegui [-c <path>] [-geometry <geom>] [-o] [-r] [-s] [-t <num>] amulegui [-v] amulegui [-h] DESCRIPTION
amulegui is a client program, and can be connected to amule or amuled via EC. You can manage your amule program with it. It provides almost the same functionalities as amule, even if the core works on another computer. [ -c <path>, --config-dir=<path> ] Read config from <path> instead of home [ -geometry <geom> ] Sets the geometry of the app. <geom> uses the same format as standard X11 apps: [=][<width>{xX}<height>][{+-}<xoffset>{+-}<yoffset>] [ -o, --log-stdout ] Prints log messages to stdout. [ -r, --reset-config ] Resets config to default values. [ -s, --skip ] Skip connection dialog. [ -t, --category=<num> ] Set category for passed eD2k links to <num> [ -h, --help ] Prints a short usage description. [ -v, --version ] Displays the current version number. REPORTING BUGS
Please report bugs either on our forum (http://forum.amule.org/), or in our bugtracker (http://bugs.amule.org/). Please do not report bugs in e-mail, neither to our mailing list nor directly to any team member. COPYRIGHT
aMule and all of its related utilities are distributed under the GNU General Public License. SEE ALSO
alc(1), alcc(1), amuled(1), amulecmd(1), amuleweb(1), cas(1), ed2k(1), wxcas(1), xas(1) AUTHOR
This manpage was written by Julien Delange for Debian <julien AT gunnm DOT org> This manpage was rewritten by Vollstrecker <amule@vollstreckernet.de> aMuleGUI v2.3.1 November 2011 AMULEGUI(1)