LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-24-2012, 02:09 AM   #1
rajini23
Member
 
Registered: Sep 2011
Posts: 162

Rep: Reputation: Disabled
Unhappy Wants to run the script at start up in my Linux


Hi,

I wants to run 2 Scripts in my Linux and that should be run on every reboot of my machine...

Please help me how do i do it...
 
Old 05-24-2012, 02:15 AM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
On a Debian/Ubuntu style system:

You can put the scripts in /etc/init.d/, and then configure them to run at the appropriate run-levels with update-rc.d(8)

On Redhat:

It's similar, but use the service command.

On either, the less invasive method:

Just run them from your ~/.bashrc, if that's enough. Or in /etc/bash.bashrc, if you want it to happen for each user.
 
Old 05-24-2012, 02:42 AM   #3
kosa777777
LQ Newbie
 
Registered: May 2012
Posts: 7

Rep: Reputation: Disabled
There is a couple ways to do it, quick and dirt is to add this command at the end of file /etc/rc.local
 
1 members found this post helpful.
  


Reply



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
[SOLVED] bash how run script independently from xterm in which I start it porphyry5 Programming 5 06-26-2011 04:15 AM
How to run a script that will automatically start FTP service after installation? reshmpv Linux - Newbie 2 08-18-2008 07:56 AM
Run script after server re-start ust Linux - Software 4 05-16-2008 07:50 AM
Trying to work out how to run a script with a start command or something similar helptonewbie Programming 6 05-31-2007 04:27 PM
start up script run once ?? johnyy Linux - Software 1 12-28-2003 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:33 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
Open Source Consulting | Domain Registration