Results 1 to 4 of 4

Thread: Getting a program started at startup??

  1. #1
    Junior Member registered user
    Join Date
    Apr 2004
    Location
    Vadodara
    Posts
    20

    Getting a program started at startup??

    I need to start a program TRY.OUT which I have made using g++ in knoppix-autoconfig, but when I specify ./TRY.OUT in knoppix-autoconfig it gives "/etc/rcS.d/S00knoppix-autoconfig ./TRY.OUT file not found".
    I copied TRY.OUT in /etc/rcS.d/TRY.OUT as well as /etc/init.d/TRY.OUT ; but still the problem is there.
    Can anybody please help me.
    ThankYou in advance...

  2. #2
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    611
    You may not want it running as part of knoppix-autoconfig, especially if it depends on other services such as networking components and the like.

    Best is to create a startup script for it.

    cd /etc/init.d
    vi tryout

    (Use another editor if you don't like vi)

    This will be a very simple shell script to start your application.

    #!/bin/sh
    cd /dir/where/TRY.OUT/is/saved
    ./TRY.OUT



    Save it and exit. Make it executable.

    chmod +x tryout


    Now link it into your default run control folder (rc5.d for a graphical boot).

    cd /etc/rc5.d
    ln -s ../init.d/tryout S99tryout


    You link will start with S##, which indicates it is a script that starts a program/service, and the numbers indicate the order compared to other services that it will start. S99 would make it the last thing to start.

  3. #3
    Junior Member registered user
    Join Date
    Apr 2004
    Location
    Vadodara
    Posts
    20

    Thank you !

    Thank You for all your help. Hope this works. One question that still bother's me is, are these scripts kept in /etc/rc5.d started as root, and if I have installed Knoppix on my hard drive, are this scripts started before I login ??
    Thanking you in advance ...

  4. #4
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    611
    Yes, these are started as root and they start before you login.

    change the last line of the script to-

    su -c "./TRY.OUT" knoppix

    if you want it to be started by the user knoppix.

Similar Threads

  1. 3.8.1 started locking up
    By atrick-pay in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 05-03-2005, 05:04 AM
  2. Problem getting STARTED even.....
    By sirknot in forum MS Windows & New to Linux
    Replies: 3
    Last Post: 02-10-2005, 08:34 PM
  3. got Knoppix started, now what?
    By sirknot in forum MS Windows & New to Linux
    Replies: 3
    Last Post: 02-10-2005, 06:35 AM
  4. Help Getting started!
    By s10237 in forum General Support
    Replies: 0
    Last Post: 01-09-2005, 03:08 PM
  5. Not a newbie but never really started either.
    By hokeypokey31 in forum General Support
    Replies: 7
    Last Post: 09-23-2004, 03:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Vintage 1989 Macintosh SE/30 Model No.: M5119 Computer Made In U.S.A., No Power picture

Vintage 1989 Macintosh SE/30 Model No.: M5119 Computer Made In U.S.A., No Power

$149.99



Vintage 1989 Macintosh SE/30 Model No.: M5119 Computer Made In U.S.A., No Power picture

Vintage 1989 Macintosh SE/30 Model No.: M5119 Computer Made In U.S.A., No Power

$149.99



Vintage 1989 Macintosh SE/30 Model No.: M5119 Computer Made In U.S.A., No Power picture

Vintage 1989 Macintosh SE/30 Model No.: M5119 Computer Made In U.S.A., No Power

$149.99



Vintage 1989 Macintosh SE/30 Model No.: M5119 Computer Made In U.S.A., No Power picture

Vintage 1989 Macintosh SE/30 Model No.: M5119 Computer Made In U.S.A., No Power

$149.99



Vintage 1992 Apple Macintosh PowerBook Duo 210 FOR PARTS/REPAIR picture

Vintage 1992 Apple Macintosh PowerBook Duo 210 FOR PARTS/REPAIR

$50.00



Vintage Apple Macintosh Plus Desktop Computer - M0001, Powers on, Good Condition picture

Vintage Apple Macintosh Plus Desktop Computer - M0001, Powers on, Good Condition

$199.99



Vintage Apple Macintosh IIsi 5MB RAM, NuBus adapter, no HD, power & display OK picture

Vintage Apple Macintosh IIsi 5MB RAM, NuBus adapter, no HD, power & display OK

$80.00



Apple Macintosh PowerBook 550c, 68040 36MB RAM, 500MB HD Works Vintage RARE picture

Apple Macintosh PowerBook 550c, 68040 36MB RAM, 500MB HD Works Vintage RARE

$799.00



Vintage Apple Macintosh IIci Computer No Power For Parts and Repair No OS No HDD picture

Vintage Apple Macintosh IIci Computer No Power For Parts and Repair No OS No HDD

$159.95



Vintage Apple Macintosh Plus 1MB M0001A Includes Keyboard Drive Mouse picture

Vintage Apple Macintosh Plus 1MB M0001A Includes Keyboard Drive Mouse

$219.99