LinuxQuestions.org
Register a domain and help support LQ
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 10-31-2008, 02:19 AM   #1
mahi
LQ Newbie
 
Registered: Sep 2007
Location: mysore
Distribution: Debian
Posts: 16

Rep: Reputation: 0
running scripts at start up in Debian...


hello people...
i wanted to know how to run (shell)scripts at start up....
for example I'm using Debian...
suppose that I've written a shell script moun.sh to mount my windows drives onto local linux file system...
every time i boot Debian i need to run this script manually..
Is there any mechanism to make it executable at startup...???
It would be very helpfull to configure my system to my needs..
so anybody who knows please help....
 
Old 10-31-2008, 02:23 AM   #2
maradnus
Member
 
Registered: Oct 2008
Location: Yellagiri Hills
Distribution: Fedora
Posts: 87

Rep: Reputation: 15
rc.local file

Hi

One simple way is to put the script in /etc/rc.d/rc.local file.

Have a good day
 
Old 10-31-2008, 04:10 AM   #3
mahi
LQ Newbie
 
Registered: Sep 2007
Location: mysore
Distribution: Debian
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by maradnus View Post
Hi

One simple way is to put the script in /etc/rc.d/rc.local file.

Have a good day

ok... thank you..
actually in my system there was no /etc/rc.d folder..
rc.local was found in /etc/init.d ...
and it worked....
thanks a lot anyways...

Last edited by mahi; 10-31-2008 at 04:14 AM.
 
Old 10-31-2008, 05:02 AM   #4
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Bodhi, Mint-xfce
Posts: 182

Rep: Reputation: 21
/etc/rc.local, /etc/profile, ~/.bash_profile, ~/.profile, ~/.bashrc, etc (depending on your setup/distro).
Soooo many choices! Each with their own quirks!

Last edited by roy_lt_69; 10-31-2008 at 05:04 AM.
 
  


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
a start up script in rc.M stops the following scripts from running nass Slackware 7 05-21-2007 07:21 AM
VPN: Debian Scripts -> Mandriva 2006 Scripts Undefined Mandriva 0 11-30-2005 01:10 PM
running perl scripts very system start abdul_zu Programming 16 09-26-2005 02:55 AM
debian start up scripts? pgte3 Debian 7 08-25-2004 07:42 PM
Start Up Scripts not running MaverickApollo Linux - General 3 10-20-2003 10:31 PM


All times are GMT -5. The time now is 04:52 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