Article View: comp.sys.next.sysadmin
Article #2284Re: rc.local
From: Erik Oliver
Date: Sat, 09 Jan 1993 16:22
Date: Sat, 09 Jan 1993 16:22
35 lines
1595 bytes
1595 bytes
In article <1993Jan8.150428.29811@neptune.inf.ethz.ch> rpajarol@iiic.ethz.ch (Renato Bruno Pajarola) writes: >Hi people, >since I have the new NextStep3.0, over all it's very good, I can't do >some things I did bevore. > >Especially things I want to do at boot-up time. > >In NS2.1 I had entries in the rc.local to play a sound and to power the >printer off. The entries looked something like this: > >sndplay /LocalLibrary/Sounds/mysound.snd & > >... > >nppower off > >... > > As a rule of thumb, you should include full paths in 'rc' and 'cron' run scripts because frequently environment variables that might normally assist unix in finding executables are not avaialable. Peraps under 2.0 either the PATH environement was set somehow by the time rc.local ran or these executables were stored somewhere different, I can't say. But, I would suggest trying to type the whole path out: eg: /usr/bin/runthisapp Etc. Also, there may be some issues involving when disk mounting occurs preventing the sounds from playing. (I can't really say.) -Erik
Technical Details
Message-ID:
<4CMWBJFH@cc.swarthmore.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!psuvax1!news.cc.swarthmore.edu!ralph.cs.haverford.edu!eoliverReferences:
<1993Jan8.150428.29811@neptune.inf.ethz.ch>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.sysadmin Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!psuvax1!news.cc.swarthmore.edu!ralph.cs.haverford.edu!eoliver From: eoliver@ralph.cs.haverford.edu (Erik Oliver) Subject: Re: rc.local Message-ID: <4CMWBJFH@cc.swarthmore.edu> Sender: news@cc.swarthmore.edu (USENET News System) Nntp-Posting-Host: ralph.cs.haverford.edu Organization: Haverford College Computer Science Department References: <1993Jan8.150428.29811@neptune.inf.ethz.ch> Date: Sat, 9 Jan 1993 16:22:04 GMT Lines: 36