ftp.nice.ch/peanuts/GeneralData/Usenet/news/1991/CSNMisc-91.tar.gz#/comp-sys-next-misc/1991/Sep/Executing-.snd-file-during-boot

This is Executing-.snd-file-during-boot in view mode; [Up]


Date: Sun 14-Sep-1991 05:40:01 From: blakeley@cis.ohio-state.edu (Denise Blakeley) Subject: Executing .snd file during boot I don't want to start another religious discussion about whether or not to ever power down one's system, okay? I just have an idea that I don't know how to implement, and am hoping someone can help... Since it takes a few minutes for my NeXT to power/boot up and I could go do something else during that time, I got to thinking it would be nice to have it play a .snd file at the end of the process--perhaps for a few iterations--to catch my attention. Does anyone know how/if this could be done? If it's possible but tricky or adds much more time to the booting, I won't bother. Thanks-- Denise
Date: Sun 14-Sep-1991 06:39:02 From: anderson@macc.wisc.edu (Jess Anderson) Subject: Re: Executing .snd file during boot In article <9109140540.AA06367@iguana.cis.ohio-state.edu> blakeley@cis.ohio-state.edu (Denise Blakeley) writes: >Since it takes a few minutes for my NeXT to power/boot up >and I could go do something else during that time, I got to >thinking it would be nice to have it play a .snd file at the >end of the process--perhaps for a few iterations--to catch >my attention. Does anyone know how/if this could be done? >If it's possible but tricky or adds much more time to the >booting, I won't bother. I don't think it's especially tricky and it won't add much time to your boot, if you boot is already a matter of minutes. There are probably a number of ways to do it. I have a noise-maker to signal the end of logging in, rather than booting; near the end of my .login is this: f { test -r /dev/console } then sndplay /NextLibrary/Sounds/Sonar.snd endif The test lets me not see an error message if I log in remotely, since I can't blatt on the remote terminal. Sonar.snd, btw, was glommed from Christoper Kane's clever Ping app (see archives), edited to make it shorter. I'm a submarine buff, and the boing noise is amusing without driving everyone nearby nuts, so I use it for the system beep, which is why I put it in that directory. <> You can be born to the path of a warrior and never harm <> anyone. -- Scott Glenn
Date: Sun 14-Sep-1991 06:59:32 From: anderson@macc.wisc.edu (Jess Anderson) Subject: Re: Executing .snd file during boot In article <1991Sep14.063902.16262@macc.wisc.edu> anderson@macc.wisc.edu (Jess Anderson) writes: Arrghhh! Why do I never see these things until *after* I hit s for send? >f { test -r /dev/console } then > sndplay /NextLibrary/Sounds/Sonar.snd >endif That's *if*, of course, not *f*. Gaaak.
Date: Sun 17-Sep-1991 04:39:06 From: tomt%gtenext1.uucp@gte.com (Tom Tucker) Subject: Re: Executing .snd file during boot In article <9109140540.AA06367@iguana.cis.ohio-state.edu> blakeley@cis.ohio-state.edu (Denise Blakeley) writes: > > Since it takes a few minutes for my NeXT to power/boot up and I could go do > something else during that time, I got to thinking it would be nice to have it > play a .snd file at the end of the process--perhaps for a few iterations--to > catch my attention. Does anyone know how/if this could be done? If it's > possible but tricky or adds much more time to the booting, I won't bother. > Try this in /etc/rc.local: /usr/bin/sndplay /LocalLibrary/Sounds/CompletelyOperational.snd & Mine is Hal 9000 announcing that he is completely operational.
Date: Sun 14-Sep-1991 15:26:41 From: matthews@lewhoosh.umd.edu (Mike Matthews) Subject: Re: Executing .snd file during boot In article <9109140540.AA06367@iguana.cis.ohio-state.edu> blakeley@cis.ohio-state.edu (Denise Blakeley) writes: >Since it takes a few minutes for my NeXT to power/boot up and I could go do >something else during that time, I got to thinking it would be nice to have it >play a .snd file at the end of the process--perhaps for a few iterations--to >catch my attention. Does anyone know how/if this could be done? If it's >possible but tricky or adds much more time to the booting, I won't bother. Add the following lines in /etc/rc.local: if [ -f /usr/bin/sndplay -a -f /yoursoundfile]; then /usr/bin/sndplay /yoursoundfile fi I have mine play HAL's "I'm completely operational, and all my circuits are functioning perfectly" sound (although it echoes "maybe" to the console to guard against libel :-) ). If you want a loop, there's probably some /bin/sh loop construct, but I'm not much of an sh person. A sufficiently long sound should get your attention. >Thanks-- >Denise Mike

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.