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
  •  


Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black picture

Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black

$32.00



MagicJack - HOME VoIP Telephone Adapter 12 Months of Service - Black New Sealed picture

MagicJack - HOME VoIP Telephone Adapter 12 Months of Service - Black New Sealed

$39.99



Grandstream GS-GXP2135 8 Lines 4 SIP Counts Bluetooth Enterprise IP VoIP Phone picture

Grandstream GS-GXP2135 8 Lines 4 SIP Counts Bluetooth Enterprise IP VoIP Phone

$30.71



Cisco CP-8841 VoIP Phone - Black picture

Cisco CP-8841 VoIP Phone - Black

$20.00



Cisco/Linksys SPA2102 VoIP Phone Adapter Router 2FXS (Unlocked) picture

Cisco/Linksys SPA2102 VoIP Phone Adapter Router 2FXS (Unlocked)

$16.99



Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945 picture

Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945

$3.00



New Cisco 7945G IP VoIP Gigabit GIGE Telephone Phone CP-7945G -  picture

New Cisco 7945G IP VoIP Gigabit GIGE Telephone Phone CP-7945G -

$24.95



MagicJack - HOME VoIP Telephone Adapter with 12 Months of Service - Black picture

MagicJack - HOME VoIP Telephone Adapter with 12 Months of Service - Black

$39.99



UBIQUITI UVP Executive Unifi VoIP Phone - 7

UBIQUITI UVP Executive Unifi VoIP Phone - 7" HD touchscreen #003

$120.00



REF A-STOCK - Polycom 2200-48450-025 VVX 411 IP VOIP POE Gigabit Telephone picture

REF A-STOCK - Polycom 2200-48450-025 VVX 411 IP VOIP POE Gigabit Telephone

$38.68