saving settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We are talking about something perfomred only once from within rc.local so
I cannot believe saving a couple of milliseconds once a day is a very big
deal! One advantage of the copy method is that is open ended - it copies
whatever files you put in the source directory and does not complain if
some are not there - with the echo method you have to have a separate echo
statement for each value you want to set. I am sticking with the copy
method.
Chuck
 On Wed, 14 Feb 2001, Holmes, Steve wrote:

> I will probably be sticking to the echo/script method then.
> 
> -----Original Message-----
> From: Kerry Hoath [mailto:kerry at gotss.eu.org]
> Sent: Wednesday, February 14, 2001 10:28 AM
> To: speakup at braille.uwo.ca
> Subject: Re: saving settings
> 
> 
> Actually copying the files is likely to use up more file handles than
> echoing values,
> so from a puritanical point of view echo 8 >/proc/speakup/rate will be
> faster than
> the copy method because there are less fopen and fclose calls. Each time you
> fopen a file
> you need to create a file handle structure for it. Echo is also
> a shell builtin so it is likely to execute fast.
> On Wed, Feb 14, 2001 at 06:36:48AM -0700, Steve Holmes wrote:
> > <hmmm> that is an interesting idea.  What I've been doing is to run a
> > shell script that "echos" my desired values into the /proc files..  This
> > file copy method sounds like it might be more efficient though.  Haven't
> > done much of anything with the /proc file system; so much to learn:).
> > 
> > On Tue, 13 Feb 2001, William F. Acker WB2FLW +1-303-777-8123 wrote:
> > 
> > > Hi Raul,
> > > 
> > >      Loadspk doesn't work any more.  The speech parameters are all
> > > controlled from files in /proc/speakup.  I created a directory called
> > > /etc/speakup and put my settings in that directory.  I made a file for
> > > rate and put 6 in it and so on.  Then, in my rc.local, I put a line that
> > > says:
> > > cp -R /etc/speakup /proc
> > > note the uppercase R.
> > > 
> > > 
> > > 
> > >           HTH.
> > >           Bill
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > Speakup mailing list
> > > Speakup at braille.uwo.ca
> > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> > > 
> > 
> > 
> > _______________________________________________
> > Speakup mailing list
> > Speakup at braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> > 
> 
> 

My web site is http://www.mhonline.net/~chuckh 
The Moon is Waning Gibbous (55% of Full)





[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux