🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.sysadmin
4 messages
4 total messages Started by Renato Bruno Pajarola Fri, 08 Jan 1993 15:04
rc.local
#2267
Author: Renato Bruno Pajarola
Date: Fri, 08 Jan 1993 15:04
60 lines
2202 bytes
Subject: 
Summary: 
Expires: 
Sender: rpajarol@iiic.ethz.ch
Followup-To: 
Distribution: Distribution: 
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH), Zurich, CH
Keywords: nppower


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

...


The sound was played during boot process until the loginwindow was
displayed (then interrupted, never mind ...).

The printer was turned off bevor displaying the loginwindow.

In NS3.0 now the sound does not play anymore.
(the path is right, sndplay still exists)

In some cases I was able to turn the printer off, but then after loging
in, the printer did'n turn on when selecting "Print", because it's
status was "unavailable". I had to switch it to private or public
using the PrinterManager.
(not the way I like it)

The sound "mysound" is on a second, extern harddisk.
(it was also in NS2.1)


Can anybody tell me, what changed in the behaviour of the rc.local script
or how can I achieve these things (esp. printer off) in another way.

Thanks a lot for mailing me back.
                 -------

------------------------------------------------------------------------

Name:           Renato Pajarola
Country:        Switzerland
Profession:     Student in Computer Science ETH Zuerich
E-Mail:         rpajarol@iiic.ethz.ch

There's a hell of a good universe NeXT door; let's go ...
Re: rc.local
#2284
Author: Erik Oliver
Date: Sat, 09 Jan 1993 16:22
35 lines
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
Re: rc.local
#2324
Author: Robert Frank
Date: Mon, 11 Jan 1993 10:33
41 lines
1867 bytes
In article <1993Jan8.150428.29811@neptune.inf.ethz.ch>  writes:
> Subject: 
> Summary: 
> Expires: 
> Sender: rpajarol@iiic.ethz.ch
> Followup-To: 
> Distribution: Distribution: 
> Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH),  
Zurich, CH
> Keywords: nppower
> 
> 
> 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
> 
> ....
> 
> 

I always had to put a sleep <some seconds> before the nppower off command in  
rc.local. On the 'old' station and 2.1, 3 seconds were fine, now I need 5  
seconds or the printer won't turn off.

--
Robert Frank                         tel. + (061) 321 99 67                 
Institut fuer Informatik             fax  + (061) 321 99 15                 
University of Basel, Switzerland                                            
Mittlere Strasse 142      rfc822: frank@ifi.unibas.ch (NeXT mail accepted)  
CH-4056 Basel          X400: S=frank;OU=ifi;O=unibas;P=switch;A=arcom;C=ch
Re: rc.local
#2326
Author: Renato Bruno Pajarola
Date: Mon, 11 Jan 1993 12:04
27 lines
1505 bytes
I posted the question about sndplay and nppower off in the rc.local
script.

I tried out the tips and the solution is in both cases:
put a sleep command and then the other.

(sleep 10; /usr/bin/sndplay ...) &
(sleep 10; /usr/etc/nppower off) &

I guess you have to wait until the loginwindow process is
correctly started and then al the "services" have their correct
behaviour.

sndplay and nppower start now after the loginwindow appears.
The printer is now "Private" after logging in, and that's
what I wanted.

Thanks for the tips,
-------------------------------------------------------------

Name:           Renato Pajarola
Country:        Switzerland
Profession:     Student in Computer Science ETH Zuerich
E-Mail:         rpajarol@iiic.ethz.ch

There's a hell of a good universe NeXT door; let's go ...
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads