hi
thanks. when i gave this command then i got process id and then when i want to kill that old process by using kill -9 PID(process id) then it shows no such process. It should be noted that 'jarhadta' is a ldap user. please resolve it for me.
Quote:
Originally Posted by denn
Did you try the command, and if so what was the results?
You have to use the full command posted, in my original post, not just:
"awk '$6=/old/{ print $7}' | xargs kill -HUP"
run the below, and it should give all the process ID's you want to kill, if
not please post results.
Hi,
Please let us know of any possiblity of identifying and killing unix proces invoked externally (by an external tool which does not create a session). 'who' command gives idle time of sessions. But what we are looking for is idle time of a process. 'ps' command gives the elapsed/running... (1 Reply)
My max user parm is set to 1050. I'm currently at 1038 this is causing major slow downs on the server. I looking for a way log off "idle" user logins with out having to do it individually. :confused: (5 Replies)
Im "supporting" at least 2500 HP-UX workstations with CAD-related software with the B.11.11 build. I cant say anymore than that because of my companys sligtly paranoid security policy .
The last few days a new problem has arised from nowhere.
The problem is that users gets logged off when the... (5 Replies)
Dear Friends ,
I am using DB2 database in AIX 5.3 server . In my server some IDLE process are generated after several times which I need to kill it manually each and every time .
The process I query like following :
root@bagpuss $ ps auxw|sort -r +3|head -10
USER PID %CPU %MEM ... (3 Replies)
Hi All,I have a problem with my kill idle script.my script is supposed to kill the user sessions which are idle for more than 2 hours.But is is killing the sessions which are idle for less than 2 hrs also.I dont know the exact time after which the script is killing,but it is less than 2 hours i am... (3 Replies)
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)
Hi,
I need a script that can automatically kill all processes named "webrepn" and "webrebw" if idle for more than 30 minutes.
Then I will have a Cron Job to run the script every night or 2-3 times a day depends on how this script helps.
Right now, I run "ps -ef | grep webrebn" and "kill -9... (7 Replies)
Hi Team ,
I have one process named as cec_analysiseool that is running on unix box machine now i want to kill this process so please advise what will be the ideal command to kill this , what i have tried is :confused:
kill -9 `ps -ef | grep cec_analysiseool | grep -v grep | awk '{print $2}'` (2 Replies)
Discussion started by: unclesamm
2 Replies
LEARN ABOUT CENTOS
set_close_button_callback
set_close_button_callback(3alleg4) Allegro manual set_close_button_callback(3alleg4)NAME
set_close_button_callback - Handles the user clicking on the close button of the window. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int set_close_button_callback(void (*proc)(void));
DESCRIPTION
On platforms that have a close button, this routine installs a callback function to handle the close event. In other words, when the user
clicks the close button on your program's window or any equivalent device, the function you specify here will be called.
This function should not generally attempt to exit the program or save any data itself. The function could be called at any time, and there
is usually a risk of conflict with the main thread of the program. Instead, you should set a flag during this function, and test it on a
regular basis in the main loop of the program.
Pass NULL as the `proc' argument to this function to disable the close button functionality, which is the default state.
Note that Allegro cannot intercept the close button of a DOS box in Windows.
Also note that the supplied callback is also called under MacOS X when the user hits Command-Q or selects "Quit" from the application menu.
Example:
volatile int close_button_pressed = FALSE;
void close_button_handler(void)
{
close_button_pressed = TRUE;
}
END_OF_FUNCTION(close_button_handler)
...
allegro_init();
LOCK_FUNCTION(close_button_handler);
set_close_button_callback(close_button_handler);
...
while (!close_button_pressed)
do_stuff();
RETURN VALUE
Returns zero on success and non-zero on failure (e.g. the feature is not supported by the platform).
SEE ALSO set_window_title(3alleg4)Allegro version 4.4.2 set_close_button_callback(3alleg4)