Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-03-2007, 11:01 AM   #1
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,978
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
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!

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

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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


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

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration