LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-15-2006, 11:30 AM   #1
dglock
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Rep: Reputation: 0
running scripts at boot


I am using pclinux .92 jr.

I have a script i want to run at boot,I have seen other posts that say to put the script in rc.local but that does not exist in pclinux.

How can i get this script to run at boot?

thanks

don
 
Old 08-15-2006, 11:32 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Put it in any script, or create a new script, in your /etc/rc.something directory. The /etc/rc.... directory/directories include scripts that are run at boot. Some distributions have /etc/rc.local and some don't - but the rc-directory usually holds at least some scripts that are run at boot time, and in most cases you can simply write your own and put it there.
 
Old 08-15-2006, 11:48 AM   #3
dglock
LQ Newbie
 
Registered: Mar 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the reply!

I have tried putting the script in the rc.local directory but it doesn't run.

There must be a config file some where that tells the os what scripts to run.

don
 
Old 08-15-2006, 01:15 PM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
If you can't figure out how to run scripts by the way discuted above, you can, at least, ask to root's crontab to run it at boot time:

Code:
root@localhost # crontab -l
@reboot /path/to/your/script
root@localhost #
This special time specification "@reboot" replace the 5 initial time and date fields.

Personally, I think this is a work-around. Others may have the opinion it is just another feature. Would be nice if you figure out how to do this using the default startup schema for your distro.

Last edited by marozsas; 08-15-2006 at 01:25 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Scripts at Boot, via Cron etc maxhugen Linux - Newbie 2 12-06-2005 09:42 PM
running scripts at boot... thedp SUSE / openSUSE 2 10-17-2005 08:21 AM
running scripts at boot viniosity Ubuntu 3 07-19-2005 08:52 PM
My box hangs when running boot scripts elkrammer Linux - Distributions 5 03-31-2003 07:02 PM
Running scripts at boot time saintt Linux - Software 1 08-09-2002 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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