Other Help Topics :: Execute a script after bootup



I know I have seen an explanation for this in the forums, but I could not locate it.  

What I want to do is to execute a script that I wrote automatically when ever I boot up the computer.  Specifically the script would cause festival to speak a greeting message any time the computer is booted or rebooted.

Festival is automatically loaded as a mydsl application and the script works OK if manually run, but I can not seem to find the proper file or place to cause the script to be automatically run.

Can anyone point me in the right direction?

Thanks,

Mel

I believe if you want to execute it when X starts than you would have to put it in .xinitrc. Otherwise if you want it to run even when not booting into X I believe that you would put it in /opt/bootlocal.sh . Hope this helps.
Thanks adssse!  You were right on.  I put a path to my script in both places as an experiment and the message was spoken before X was started and again after X was started.  

Thanks again,

Mel

Glad I could help.

original here.