setting speakup to certain settings
Jude DaShiell
jdashiel at shellworld.net
Sat Dec 1 20:38:51 UTC 2007
Your script is probably correct, but please remember you don't yet have a
script just a text file. Now if you make that text file executable, then
it becomes a script. So, chmod 755 script.sh as root then try running it
again. Also putting such scripts into /usr/local/bin can make them
accessible to everyone on the system and protect them from yum upgrade
actions which might erase the scripts.
On Sun, 25 Nov 2007, Daniel Dalton wrote:
> Hi,
>
> I am trying to write a shell script to set all the speakup settings on boot
> up. Actually not all but some. I want punc level and reading to be at 2 and
> rate to be at 6.
> It seems this is cleared at shutdown. Do I just run my script like this?
> ./scriptname.sh
>
> This is what I did:
> emacs ~/settings-speakup.sh
>
> #!/bin/sh
> echo 6 > /proc/speakup/rate
> echo 2 > /proc/speakup/punc_level
> echo 2 > /proc/speakup/reading_punc
>
> (I hope the last line is correct)
> when I save the file and type:
> ./settings-speakup.sh it says:
> bash /settings-speakup.sh permission denied.
> If I type it as root I get the same error.
> Any ideas?
> And once the script works how do I make it be ran when the box boots?
>
> Also does anyone know of a good online guide to shell scripting?
> Thanks.
>
> --
> Daniel Dalton
>
> http://members.iinet.net.au/~ddalton/
> daniel.dalton47 at gmail.com
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
>
More information about the Blinux-list
mailing list