Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: tardis!jms@tymix.tymnet.com (Joe Smith) Newsgroups: comp.sys.sun Subject: Determining if /dev/console = /dev/fb and not /dev/ttya Keywords: SunOS Message-ID: <3966@kalliope.rice.edu> Date: 15 Jun 89 06:57:04 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 12 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 41, message 5 of 14 I want to have my .logout script put a rasterfile on the screen when I logout on a workstation. Using "if (`tty` == /dev/console)" I can reject logins from the dialup ports and rlogin sessions, the file server has /dev/ttya as its console. My first misguided attempt to check if /dev/console is the same as /dev/ttya caused the server to panic with a bus error. Any suggestions? -- Joe Smith (408)922-6220 | SMTP: JMS@F74.TYMNET.COM or jms@tymix.tymnet.com McDonnell Douglas FSCO | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms PO Box 49019, MS-D21 | PDP-10 support: My car's license plate is "POPJ P," San Jose, CA 95161-9019 | narrator.device: "I didn't say that, my Amiga did!"