LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-09-2004, 11:13 AM   #1
khucinx
LQ Newbie
 
Registered: May 2004
Posts: 23

Rep: Reputation: 15
Question execute file at startup?


hi..

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

thank's
 
Old 06-09-2004, 11:27 AM   #2
aluser
Member
 
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

Code:
@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.
 
  


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


All times are GMT -5. The time now is 12:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration