Good question. I am not sure. I would assume it does. Try it on what you know to be a non-existent pts.
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 Jeff Powell Sent: Friday, July 24, 2009 3:23 PM To: U2 Users List Subject: Re: [U2] [UD] Logoff on Telnet Disconnect I just tried this on a session that the computer was suspended on and it thought the session was alive. I also did this to a non-existent tty (/dev/pts/7a) it also thought it was alive. if ! > /dev/pts/7a; then echo "dead"; else echo "alive"; fi alive Does the " >/dev/pts/??" set the $? return value? Thanks. Jeff Dave Laansma wrote: > 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 _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users