Newsgroups: comp.sys.next Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!zazen!news From: anderson@macc.wisc.edu (Jess Anderson) Subject: Sound at login time (was autolaunching from desktop) Message-ID: <1991Mar24.120736.13468@macc.wisc.edu> Sender: news@macc.wisc.edu (USENET News System) Organization: Madison Academic Computing Center, UW-Madison References: <9118@plains.NoDak.edu> Date: Sun, 24 Mar 91 12:07:36 GMT In article <9118@plains.NoDak.edu> person@plains.NoDak.edu (Brett G Person ) writes: >Is there a way to launch a program automatically when I log >in to the console? I'd like to have my NeXt account play a >sound effect when I log in. How do I automagically do this? While "automagic" is a common NeXT term I've never really understood, here's how I play sound at login time. This is at the end of my .login file: if { test -r /dev/console } then sndplay .snd endif So it plays whenever I launch a new shell. Hope this helps. Asking the net is how I found this out m'self. <> Moderate reformers always hate those who go beyond them. <> -- J.A. Froude -- 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