LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-03-2007, 12:01 PM   #1
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,970
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
How to Make a command run at stratup


Hello all,

I know how you make a service start at startup (using chkconfig and ntsysv)...but how do I run a command at startup? What I want to do is execute this command at startup:

avant-window-navigator &

WHere can I do this? In the fstab? Thanks!

-Christian
 
Old 03-03-2007, 12:11 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Do you mean when the system starts, when X windows starts, or when your user logs in? There are different ways to do each of these three things.

For system starts: put the command in /etc/rc.local (true on most systems, some have slightly different ways, though
For X starts: Add to ~/.xinitrc or to your window manager's startup sequence
For user login: add to ~/.bash_profile, ~/.bashrc, or other shell startu pscript as appropriate
 
  


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
SUSE 9.1 cant run "make" command anjum Linux - Software 3 08-09-2005 12:36 PM
stratup command matrixon Linux - Software 1 06-13-2005 03:41 AM
How do I make a command run as root at boot up under Fedora 3? versaulis Linux - Software 5 02-10-2005 07:22 PM
make a command run at startup? cheater1034 Linux - General 2 09-12-2004 06:51 AM
where do i add a command to make it run on boot stuart Linux - Newbie 4 06-21-2004 07:03 PM


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