Sorry, the ${prodid} is the process id, also obtained from the same 'listuser' command.
David Laansma IT Manager Hubbard Supply Co. Direct: 810-342-7143 Office:810-234-8681 Fax: 810-234-6142 www.hubbardsupply.com "Delivering Products, Services, and Innovative Solutions" -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Dave Laansma Sent: Friday, July 24, 2009 1:38 PM To: U2 Users List Subject: Re: [U2] [UD] Logoff on Telnet Disconnect I have a script that I run periodically does this. Here are the critical elements of said script: if ! > /dev/${devn} 2>/dev/null 1>/dev/null then /usr/udthome/bin/stopudt ${proid} fi ${devn} is derived earlier in the script from the 'listuser' command. Basically, if there is a pts in the U2 user list but Unix cannot send a null redirected message to it, it must be disconnected. I am very interested if anyone has another idea that is more reliable. David Laansma IT Manager Hubbard Supply Co. Direct: 810-342-7143 Office:810-234-8681 Fax: 810-234-6142 www.hubbardsupply.com "Delivering Products, Services, and Innovative Solutions" -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King Sent: Friday, July 24, 2009 1:19 PM To: U2 Users List Subject: [U2] [UD] Logoff on Telnet Disconnect Is there any UDT option that causes a Unidata (7.1.16) session to be dropped when the telnet session is inadvertently disconnected? Barring that, when a telnet session is inadvertently disconnected is there a reliable way (AIX 5) to determine that a session has or does not have a telnet client connected to it? -Kevin http://www.PrecisOnline.com _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users