Sponsored Content
Full Discussion: Shell exit due to inactivity
Top Forums Shell Programming and Scripting Shell exit due to inactivity Post 302455828 by Corona688 on Wednesday 22nd of September 2010 01:15:45 PM
Old 09-22-2010
How about you try it?
 

10 More Discussions You Might Find Interesting

1. SCO

Apparent logoff’s due to inactivity.

I have run across an issue with the last two Dell Poweredge servers I have attempted to deploy. I seems that when a telnet session sits idle for 5 to 30 minutes (seems random) the session is being closed and users are logged off. If the session has user activity there is no problem staying... (0 Replies)
Discussion started by: gadgetman
0 Replies

2. UNIX for Advanced & Expert Users

User inactivity at OS level

Dear friends, Can anyone let me know how to configure various OS mentioned below to get user ids deactivated automatically if not logged in at all for a period of, say, 45 days? 1. UNIX / Linux / AIX / Tru64 2. It is OK whether the solution is by running OS commands / running scripts written... (1 Reply)
Discussion started by: bache_gowda
1 Replies

3. Solaris

solaris 9 console inactivity timeout

All, I log into Solaris 9 server through a command line at the console and want enable a inactivity timer to log out of the server after 5 minutes. How can it be done? (1 Reply)
Discussion started by: bubba112557
1 Replies

4. AIX

Can't login root account due to can't find root shell

Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in. I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies

5. Shell Programming and Scripting

command does not return exit status due to tee

Hi, I am using /bin/sh. I want to display the stdout and stderr on the terminal as well as save it in a file, so I'm using this command. gmake all 2>&1 | tee log But even if gmake fails, it's always giving 0 as exit status, i suppose because of tee. # false 2>&1 | tee Log # echo $? 0... (2 Replies)
Discussion started by: anand_bh
2 Replies

6. Red Hat

inactivity default to 30 days

Hi All, On red hat ent 4. How do I make the inactivity a default to 30 days? What config file I need to modify so that I will not modify /etc/shadow? Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

7. UNIX for Dummies Questions & Answers

lock the console after 5 minutes of inactivity.

How would i force The server console to be locked automatically after 5 minutes ? I want it to happen for X as well as terminal session of the machine. My Linux distribution details. LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID:... (11 Replies)
Discussion started by: pinga123
11 Replies

8. AIX

last - find out inactivity

I am on AIX 6.1, and need to find out who has not accessed the system within 1, 2, or 3 months depending upon the filter I specify. The output I need to have is the account name and the last time accessed: i.e. kart Mar 27 05:13 - 05:13 (00:00) Please advise. (5 Replies)
Discussion started by: Daniel Gate
5 Replies

9. Solaris

User inactivity

Simple question: for determining whether the user has exceeded the maximum amount of "inactivity" (as set in the shadow file) what date is the current login being compared to? Is it wtmp data or something? (3 Replies)
Discussion started by: thmnetwork
3 Replies

10. Solaris

Korn shell - evaluating string gives wrong results due to limitations

Anyone ever seen this? Someone mentioned this the other day.... If you do, for instance, in korn shell, echo $(5.2+2.5), it gives the result of 6 regardless. Can't remember why but it was the limitation of the korn shell. (5 Replies)
Discussion started by: psychocandy
5 Replies
XtPopup(3)							   XT FUNCTIONS 							XtPopup(3)

NAME
XtPopup, XtPopupSpringLoaded, XtCallbackNone, XtCallbackNonexclusive, XtCallbackExclusive - map a pop-up SYNTAX
void XtPopup(Widget popup_shell, XtGrabKind grab_kind); void XtPopupSpringLoaded(Widget popup_shell); void XtCallbackNone(Widget w, XtPointer client_data, XtPointer call_data): void XtCallbackNonexclusive(Widget w, XtPointer client_data, XtPointer call_data); void XtCallbackExclusive(Widget w, XtPointer client_data, XtPointer call_data); void MenuPopup(String shell_name); ARGUMENTS
call_data Specifies the callback data, which is not used by this procedure. client_data Specifies the pop-up shell. grab_kind Specifies the way in which user events should be constrained. popup_shell Specifies the widget shell. w Specifies the widget. DESCRIPTION
The XtPopup function performs the following: o Calls XtCheckSubclass to ensure popup_shell is a subclass of Shell. o Generates an error if the shell's popped_up field is already True. o Calls the callback procedures on the shell's popup_callback list. o Sets the shell popped_up field to True, the shell spring_loaded field to False, and the shell grab_kind field from grab_kind. o If the shell's create_popup_child field is non-NULL, XtPopup calls it with popup_shell as the parameter. o If grab_kind is either XtGrabNonexclusive or XtGrabExclusive, it calls: XtAddGrab(popup_shell, (grab_kind == XtGrabExclusive), False) o Calls XtRealizeWidget with popup_shell specified. o Calls XMapWindow with popup_shell specified. The XtPopupSpringLoaded function performs exactly as XtPopup except that it sets the shell spring_loaded field to True and always calls XtAddGrab with exclusive True and spring_loaded True. The XtCallbackNone, XtCallbackNonexclusive, and XtCallbackExclusive functions call XtPopup with the shell specified by the client data argument and grab_kind set as the name specifies. XtCallbackNone, XtCallbackNonexclusive, and XtCallbackExclusive specify XtGrabNone, XtGrabNonexclusive, and XtGrabExclusive, respectively. Each function then sets the widget that executed the callback list to be insensi- tive by using XtSetSensitive. Using these functions in callbacks is not required. In particular, an application must provide customized code for callbacks that create pop-up shells dynamically or that must do more than desensitizing the button. MenuPopup is known to the translation manager, which must perform special actions for spring-loaded pop-ups. Calls to MenuPopup in a translation specification are mapped into calls to a nonexported action procedure, and the translation manager fills in parameters based on the event specified on the left-hand side of a translation. If MenuPopup is invoked on ButtonPress (possibly with modifiers), the translation manager pops up the shell with grab_kind set to XtGrabEx- clusive and spring_loaded set to True. If MenuPopup is invoked on EnterWindow (possibly with modifiers), the translation manager pops up the shell with grab_kind set to XtGrabNonexclusive and spring_loaded set to False. Otherwise, the translation manager generates an error. When the widget is popped up, the following actions occur: o Calls XtCheckSubclass to ensure popup_shell is a subclass of Shell. o Generates an error if the shell's popped_up field is already True. o Calls the callback procedures on the shell's popup_callback list. o Sets the shell popped_up field to True and the shell grab_kind and spring_loaded fields appropriately. o If the shell's create_popup_child field is non-NULL, it is called with popup_shell as the parameter. o Calls: XtAddGrab(popup_shell, (grab_kind == XtGrabExclusive), spring_loaded) o Calls XtRealizeWidget with popup_shell specified. o Calls XMapWindow with popup_shell specified. (Note that these actions are the same as those for XtPopup.) MenuPopup tries to find the shell by searching the widget tree starting at the parent of the widget in which it is invoked. If it finds a shell with the specified name in the pop-up children of that parent, it pops up the shell with the appropriate parameters. Otherwise, it moves up the parent chain as needed. If MenuPopup gets to the applica- tion widget and cannot find a matching shell, it generates an error. SEE ALSO
XtCreatePopupShell(3), XtPopdown(3) X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface X Version 11 libXt 1.1.3 XtPopup(3)
All times are GMT -4. The time now is 08:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy