LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2003, 07:47 AM   #1
genghis
Member
 
Registered: Mar 2003
Location: trinidad
Distribution: fedora
Posts: 55

Rep: Reputation: 15
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


msi k7n2 stress!! under redhat 8.0
 
Old 03-14-2003, 07:51 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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.
 
Old 03-14-2003, 08:03 AM   #3
genghis
Member
 
Registered: Mar 2003
Location: trinidad
Distribution: fedora
Posts: 55

Original Poster
Rep: Reputation: 15
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.
 
Old 03-14-2003, 08:16 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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.
 
Old 03-14-2003, 10:33 PM   #5
SlCKB0Y
Member
 
Registered: Oct 2001
Location: Sydney, Australia
Distribution: Debian Unstable
Posts: 286

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
echo bat files HELP jollyjoice Programming 5 11-02-2005 03:53 PM
logon.bat for Windows XP ERB Linux - Newbie 3 09-12-2005 09:14 AM
how to run the *.bat file ztdep Linux - Software 8 07-19-2005 05:36 PM
logon.bat and Windows XP ERB Linux - Networking 6 05-31-2005 02:25 AM
The Bat! designator Linux - Software 4 11-03-2003 02:54 PM


All times are GMT -5. The time now is 05:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration