LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-29-2007, 01:49 AM   #1
sagar.1986
LQ Newbie
 
Registered: Nov 2006
Posts: 20

Rep: Reputation: 0
run everytime i start the computer


Hello everyone,

How do i run a script everytime i start the computer? Whenever i start bash, .bashrc will be executed, is there any such script so that i can append my script to that file so that it runs everytime i start the computer?
 
Old 04-29-2007, 02:01 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
On most distros you an put

@reboot /path/to/script_file

in crontab
 
Old 04-29-2007, 07:47 AM   #3
Patrick K
Member
 
Registered: Apr 2007
Distribution: Feisty (Ubuntu Studio)/Edgy
Posts: 69

Rep: Reputation: 16
/etc/rc.local is the place. It runs on every boot. Just put in the path above exit 0.
 
  


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
Computer restarting everytime frjbms@yahoo.com Linux - Hardware 2 01-19-2007 02:18 AM
have to run alsaconf everytime I boot Chinook06 Debian 1 01-18-2007 03:36 PM
Making some commands run everytime I start Linux (Slack 9.1) Agna Linux - Newbie 7 08-26-2005 09:38 PM
Need to run alsaconf everytime i boot up! RaVilj Red Hat 3 06-13-2004 05:23 PM
How do I get fortune to run everytime I start an xshell dtheorem Linux - Software 3 05-19-2004 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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