Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-09-2004, 12:13 PM   #1
LQ Newbie
Registered: May 2004
Posts: 23

Rep: Reputation: 15
Question execute file at startup?


how do i execute file at startup in linux, please?

Old 06-09-2004, 12:27 PM   #2
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 42
As a user you can do "crontab -e" and write a line like

@reboot        somecommand
You can also do it by adding symlinks starting with S to /etc/rc.d/rcX.d which point to the script you want to run. X stands for all the runlevels on which you want it to be run. This way will run the command as root.


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
How can I execute a cmd on a startup ?? lab123 Linux - Networking 1 09-13-2005 01:42 PM
Execute Shell Scripts on startup dragoroberto Linux - Software 9 02-28-2005 09:46 AM
Startup scripts not bothering to execute... systemparadox Slackware 3 01-26-2005 01:56 PM
Programs execute at startup Greg21 Linux - Newbie 5 06-05-2003 04:07 PM
execute mount (or any) command on startup frieza Linux - Software 3 04-29-2003 07:09 PM

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