This is Playing-Sound-File-at-Login in view mode; [Up]
Date: Sun 06-Nov-1991 23:19:08 From: tom@ccwf.cc.utexas.edu (tom maher) Subject: Playing Sound File at Login I would like to play a sound file when I logon to my NeXT. It is a multi-user machine and I don't have super user access. Any suggestions? tom@nextdown.pe.utexas.edu tom@ccwf.cc.utexas.edu
Date: Sun 07-Nov-1991 15:22:39 From: faught@psychosis.ssc.gov (Ed Faught) Subject: Re: Playing Sound File at Login In article <61193@ut-emx.uucp> tom@ccwf.cc.utexas.edu (tom maher) writes: >I would like to play a sound file when I logon to my NeXT. It is a multi-user >machine and I don't have super user access. Any suggestions? > >tom@nextdown.pe.utexas.edu >tom@ccwf.cc.utexas.edu Put a sndplay command in your .cshrc (or .profile) file.
Date: Sun 07-Nov-1991 16:02:16 From: digiuser@kolob.byu.edu (Rob Perkins) Subject: Re: Playing Sound File at Login In article <61193@ut-emx.uucp> tom@ccwf.cc.utexas.edu (tom maher) writes: > I would like to play a sound file when I logon to my NeXT. It is a multi-user > machine and I don't have super user access. Any suggestions? > Write a .login script that includes the line sndplay <foo.snd> & and set the terminal application to autostartup when you log in (that's in the Info | Preferences menu in the workspace). As long as you have Terminal configured to read .login and start a window automatically when it's launched you should get a sound when you log in. I've done similar things with shell scripts and sound: I wrote an script entitled "su" that plays Captain Kirk saying "prepare to attack" and then executes su.wheel. (please, no ethical discussions about the security holes that su.wheel creates when you have it on a system). It can get pretty entertaining. Rob Perkins digiuser@kolob.byu.edu NeXTmail welcome
Date: Sun 07-Nov-1991 23:37:12 From: zeke@znext (james dehnert) Subject: Re: Playing Sound File at Login In article <1991Nov7.152239.724@sunova.ssc.gov> faught@psychosis.ssc.gov (Ed Faught) writes: |In article <61193@ut-emx.uucp> tom@ccwf.cc.utexas.edu (tom maher) writes: |>I would like to play a sound file when I logon to my NeXT. It is a multi-user |>machine and I don't have super user access. Any suggestions? |> |>tom@nextdown.pe.utexas.edu |>tom@ccwf.cc.utexas.edu | |Put a sndplay command in your .cshrc (or .profile) file. | OK, but you wil get the sound every time you source this, like when opening a terminal window. Rob Perkins <digiuser@kolob.byu.edu> writes, |Write a .login script that includes the line | |sndplay <foo.snd> & | |and set the terminal application to autostartup when you log in (that's in the |Info | Preferences menu in the workspace). As long as you have Terminal |configured to read .login and start a window automatically when it's launched |you should get a sound when you log in. Probably the same problem as before. Look for the iLog application in the archives. You put this in your dock, and auto launch it will source either the .cshrc, .login, or its own .ilogspace file when you log into the console. I use it to play a sound like you suggest, and to launch a program that plays a sound when I get mail. The program is simple and self explanitory. The source is inluded if you require such a thing. The app works great! and you can even use it to do dwrites and such like to change the loginwindow ( although a dwrite never worked for my liginwindow for some reason, which is why i just went and changed it in the app much to the chagrin of -=EPS=- who would no doubt have me drawn and quartered for such a thing, but thats another story, ;-) ) Later, Zeke
Date: Sun 14-Nov-1991 15:53:55 From: js@Princeton.EDU (Jay Sekora) Subject: Re: Playing Sound File at Login tom maher writes > I would like to play a sound file when I logon to my NeXT. It > is a multi-user machine and I don't have super user > access. Any suggestions? Yes. Create a file that contains the following lines: #!/bin/csh -f /usr/bin/sndplay ~/Library/Sounds/MyLoginSound.snd (replacing "~/Library/Sounds/MyLoginSound.snd with a complete path to the sound you want to play). Name this file something ending in ".daemon", such as "Login.daemon" or "Sound.daemon", and make it executable with the Attributes inspector. (When you name an executable file with the .daemon extension, it's icon changes, and you no longer see any tools for it in the Tools inspector.) Put it someplace like your ~/Apps or ~/bin directory. Now, from the Workspace, drag it to your icon dock. Use the Workspace Preferences panel to set it to auto-launch when you log in. That should do it. (The .daemon extension prevents the shell script from getting a Workspace Shell opened for it to run in.) Hope this is useful. > tom@nextdown.pe.utexas.edu > tom@ccwf.cc.utexas.edu
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.