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 04-24-2001, 06:47 PM   #1
sachin77
LQ Newbie
 
Registered: Apr 2001
Posts: 2

Rep: Reputation: 0
Red face


hello,
I was going through a search engine & i came accross your e-mail id ,
well i want to know few things...like...
1) where can i find the executable file in Linux which acts similar to "autoexe.bat in windows environment" . like i need the complete path to that file that runs automatically.

2) Once we come to know about the file , how to break down inside the code , to know what other files this executable file must be running.
ok thanks , hoping for your prompt reply
bye
Sachin
 
Old 04-24-2001, 07:58 PM   #2
billsabub
Member
 
Registered: Feb 2001
Posts: 108

Rep: Reputation: 15
Sachin,

There is no "autoexec.bat" file to speak of in Linux. There are different run-levels that correspond to different levels of access to the system.

http://seva.chicago.il.us/writings/a...alg-init.shtml

Each run level has different scripts that it will either run or make sure are not running. These scripts can be found in the /etc/rc.d directory. Each of these scripts can be editted in any text editor as long as you have permission to make changes to these files.

For example, /etc/rc5.d is the directory for run-level 5. In this directory you will find a list of symbolic links to /etc/rcd.d (going off of memory here, since I'm at work on a windows machine) which is where all of the scripts are located. A script for a firewall could be called simply "firewall". In the /etc/rc5.d directory, you would see a sybolic link called S10 firewall, which tells the system to start the firewall script in /etc/rcd.d. The 10 means that it would be the 10th (or so) item in the startup for that run-level, so it would have to start prior to #11 and so on.

If you want to change the way a system starts up at any run-level you can either modify the script, delete the symbolic link, comment it out in that run-level directory, or tell it to kill the process (K10 instead of S10).

That's it in a (wordy) nutshell.
 
  


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
How does it all break down? Bu3Nix Slackware - Installation 5 09-15-2005 03:50 PM
start up files and tar(small q..) sachitha Programming 2 08-04-2005 06:53 AM
Kde wont start missing files. Nz_Boy_2004 Linux - Software 2 10-10-2004 10:54 PM
Could someone please break it down for me...? Pwcca Slackware 6 01-23-2003 11:05 AM
burning .iso files to start imakwik1 Linux - General 1 11-07-2001 06:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:15 AM.

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