LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2004, 04:30 AM   #1
binumvk
LQ Newbie
 
Registered: Mar 2004
Location: India
Posts: 24

Rep: Reputation: 15
Cool Auto startup


i am having one linux box.yesterday i was installed a shutcast server(from winamp) in my box.it is working fine,but every time i want start it manually
./sc_serv.Is it possible to start that one automatically next boot time.
 
Old 10-28-2004, 05:22 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Most Linux distros have a file /etc/rc.d/rc.local for you to put startup scripts in.
 
Old 10-28-2004, 05:46 AM   #3
binumvk
LQ Newbie
 
Registered: Mar 2004
Location: India
Posts: 24

Original Poster
Rep: Reputation: 15
Smile Syntax

ok for example my execuble is in ~/shoutcast/./sc_serv.how can i give this file in /etc/rc.d/rc.local.What is the syntax .
 
Old 10-28-2004, 05:48 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
there are several ways, depending on your distribution. you can probably add the command you need to start the program to the end of /etc/rc.d/rc.local if that file exists.
 
Old 10-28-2004, 05:55 AM   #5
binumvk
LQ Newbie
 
Registered: Mar 2004
Location: India
Posts: 24

Original Poster
Rep: Reputation: 15
In redhat

ok for example my execuble is in ~/shoutcast/./sc_serv.how can i give this file in /etc/rc.d/rc.local.What is the syntax .



Iam using redhat 9
 
Old 10-29-2004, 05:15 AM   #6
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Just replace the tilde character with the path to your home directory, e.g.

~/shoutcast/./sc_serv
should be
/home/<user>/shoutcast/./sc_serv
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Startup Program for KDE technobarbie Linux - Software 1 04-14-2004 07:26 PM
Auto startup ndiswrapper VenimK Linux - Wireless Networking 1 02-29-2004 05:15 PM
Disable auto login at startup x ferry.hidayat Linux - Newbie 2 10-03-2003 09:32 AM
Auto-mounting drives at startup MandrakeDave Linux - General 7 09-29-2003 05:19 PM
auto connection on browser startup. rooman Linux - Software 2 06-12-2002 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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