LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   autoexe.bat (https://www.linuxquestions.org/questions/linux-newbie-8/autoexe-bat-49792/)

genghis 03-14-2003 06:47 AM

autoexe.bat
 
hi am a true newbie
is there a file in linux comparable to autoexe.bat in windows so i can a terminal command on start up??

thanks

:newbie:
msi k7n2 stress!! under redhat 8.0

acid_kewpie 03-14-2003 06:51 AM

heh, no. there is an equivalent to autoexec.bat though ;) but it depends what you want to achieve. to have something run once on boot up, add it to the end of /etc/rc.local but you might prefer it to load on each login, only certain users logins etc... in whcih case there are more suitable places.

genghis 03-14-2003 07:03 AM

yeah i want it to run on each logon
my onboard sound dosent work even though i installed the drivers off the nvidia site
every time i reboot i have to
modprobe nvaudio
for the sound to work.

acid_kewpie 03-14-2003 07:16 AM

yes so that's rc.local you want. but actually you should be setting it to load properly, so you should be able to add soemthign like "alias sound-slot-0 nvaudio" to /etc/modules.conf, a much more official way to do that.

SlCKB0Y 03-14-2003 09:33 PM

If you want to run it for each user login then put it in ~/.bashrc or ~/.bash_profile


All times are GMT -5. The time now is 07:34 AM.