anderson@macc.wisc.edu (Jess Anderson) (01/25/91)
Today I played with sound :-), and here's what happens. Having made a suitable *.snd file that says, "Hi, there" I put this as the last line of my .login: sndplay /Users/anderson/etc/hi_there.snd This works exactly as you would expect from the NeXT, to general mirth of visitors in the office. If I rlogin from somewhere else, the (I guess restricted) shell produces a diagnostic when it gets to that line: sndplay: can't play soundfile: /Users/anderson/etc/hi_there.snd So, I would say the system knows something one could use to test and not make the call under the rlogin case. He or she who knows, please do tell. <> It does not do to leave a dragon out of your calculations, <> if you live near him. -- J.R.R. Tolkien -- Jess Anderson <> Madison Academic Computing Center <> University of Wisconsin Internet: anderson@macc.wisc.edu <-best, UUCP:{}!uwvax!macc.wisc.edu!anderson NeXTmail w/attachments: anderson@yak.macc.wisc.edu Bitnet: anderson@wiscmacc Room 3130 <> 1210 West Dayton Street / Madison WI 53706 <> Phone 608/262-5888
bchen@pooh.caltech.edu (01/25/91)
From article <1991Jan25.002608.27643@macc.wisc.edu>, by anderson@macc.wisc.edu (Jess Anderson): > > So, I would say the system knows something one could use to > test and not make the call under the rlogin case. He or she > who knows, please do tell. Try put these in .login if { test -r /dev/console } then sndplay soundfile endif ----------- Bing Chen NeXT mail: bchen@pooh.caltech.edu