Re: Killing Idle Users

2002-06-13 Thread John W. Krahn
Anthony Akens wrote: > > From: John W. Krahn [mailto:[EMAIL PROTECTED]] > > > > "John W. Krahn" wrote: > > > > > > #!/usr/bin/perl -w > > > use strict; > > > > > > my $results = '/home/danb/killemresults'; > > > open RES, '>>', $results or die "Cannot open $results: $!"; > > > print "\n" . localt

RE: Killing Idle Users

2002-06-13 Thread Akens, Anthony
1:35 annap killing process idPID 22890 40942 115930 on pts/5 because minutes equal 7 -Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 9:18 PM To: [EMAIL PROTECTED] Subject: Re: Killing Idle Users "John W. Krahn" wrote: >

Re: Killing Idle Users

2002-06-12 Thread John W. Krahn
"John W. Krahn" wrote: > > #!/usr/bin/perl -w > use strict; > > my $results = '/home/danb/killemresults'; > open RES, '>>', $results or die "Cannot open $results: $!"; > print "\n" . localtime() . "\nStarting\n"; > > for my $user ( map [ (split)[0,1,4] ], grep m|\bpts/|, `w -l` ) { > # prin

Re: Killing Idle Users

2002-06-12 Thread John W. Krahn
Anthony Akens wrote: > > Hello, Hello, > I'm a sys-admin on an AIX (4.3) machine, and I'm trying to work > with a vendor program that doesn't behave very nicely. Basically, > if a user's connection to the server is inappropriately severed > the application keeps right on chugging, leaving the

Re: Killing Idle Users

2002-06-12 Thread drieux
On Wednesday, June 12, 2002, at 06:24 , Akens, Anthony wrote: > Using export TMOUT kills the tty, but the application > (lovely thing that it is) stays up in the background, > unattached. Thus creating an even more difficult beast to > track down and, well, kill. IBM's response? (In summary)

RE: Killing Idle Users

2002-06-12 Thread Akens, Anthony
ve em fix it. Or write a shell script to logout the idle users. Hence our original script, and my attempt to convert it to perl. Tony Akens -Original Message- From: Jeff [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 6:45 PM To: [EMAIL PROTECTED] Subject: Re: Killing Idle Users

Re: Clearing Idle User login sessions - Re: Killing Idle Users

2002-06-12 Thread Craig Moynes/Markham/IBM
D]>, Craig Moynes/Markham/IBM@IBMCA Subject: Clearing Idle User login sessions - Re: Killing Idle Users

Clearing Idle User login sessions - Re: Killing Idle Users

2002-06-11 Thread drieux
On Tuesday, June 11, 2002, at 12:23 , Akens, Anthony wrote: > The line > my @inputP = qx!ps -e |grep $port!; > I love this discussion but folks why not try, oh my @inputP =qx!ps -t $port'; Or what if we just pulled in the procTable ONCE, oh, I don't know, maybe into a Hash... ht

Re: Killing Idle Users

2002-06-11 Thread Jeff
Why can't you just put export TMOUT=3600 readonly TMOUT in /etc/profile ? If it doesn't work, contact the vendor (IBM for AIX) for a patch. --- "Akens, Anthony" <[EMAIL PROTECTED]> wrote: > Hello, > I'm a sys-admin on an AIX (4.3) machine, and I'm trying to work > with a vendor progra

RE: Killing Idle Users

2002-06-11 Thread Craig Moynes/Markham/IBM
<[EMAIL PROTECTED]> To: "Akens, Anthony" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc: Craig Moynes/Markham/IBM@IBMCA

Re: Killing Idle Users

2002-06-11 Thread David T-G
Tony -- ...and then Akens, Anthony said... % % Found another problem... % % The line % my @inputP = qx!ps -e |grep $port!; % is matching a bit overzealously... For instance, % if $port = pts/6 it matches (and therefore would kill) % not only processes on port pts/6, but also pts/61, pts/

RE: Killing Idle Users

2002-06-11 Thread Akens, Anthony
[EMAIL PROTECTED] -Original Message- From: Akens, Anthony Sent: Tuesday, June 11, 2002 1:49 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Killing Idle Users Thanks! The only thing I saw to change was the line if ( $idle =~ /^\d+$/ && $idle > 0 ) to if ( $i

RE: Killing Idle Users

2002-06-11 Thread Akens, Anthony
d *most* of it! Tony Akens [EMAIL PROTECTED] -Original Message- From: Craig Moynes/Markham/IBM [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 1:00 PM To: Akens, Anthony Cc: [EMAIL PROTECTED] Subject: RE: Killing Idle Users Something like this perhaps ?: #!/usr/bin/perl -w use stric

RE: Killing Idle Users

2002-06-11 Thread Craig Moynes/Markham/IBM
cc: 06/11/02 01:13 PMSubject: RE: Killing Idle Users Please respond to

RE: Killing Idle Users

2002-06-11 Thread David . Wagner
Here is the site for Dave Roth and his sys admin via Perl: http://www.roth.net/ Wags ;) -Original Message- From: Akens, Anthony [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:14 To: [EMAIL PROTECTED] Subject: RE: Killing Idle Users Here's the shell s

RE: Killing Idle Users

2002-06-11 Thread Akens, Anthony
S >> /home/danb/killemresults kill -9 $PID fi done done - -Original Message- From: [EMAIL PROTECTED] Sent: Tuesday, June 11, 2002 12:15 PM To: Akens, Anthony; [EMAIL PROTECTED] Subject: RE: Killing Idle Users I am not in

RE: Killing Idle Users

2002-06-11 Thread Todd_Hemsell
I am not in a position to offer advice but would love to see it . -Original Message- From: Akens, Anthony [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:48 AM To: [EMAIL PROTECTED] Subject: Killing Idle Users Hello, I'm a sys-admin on an AIX (4.3) machine, and I

Killing Idle Users

2002-06-11 Thread Akens, Anthony
Hello, I'm a sys-admin on an AIX (4.3) machine, and I'm trying to work with a vendor program that doesn't behave very nicely. Basically, if a user's connection to the server is inappropriately severed the application keeps right on chugging, leaving the user logged in. By inappropriately sever