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
  •  


NEW Cisco Meraki MS130-48P-HW 48-Port Gigabit PoE+ Cloud Manage Switch UNCLAIMED picture

NEW Cisco Meraki MS130-48P-HW 48-Port Gigabit PoE+ Cloud Manage Switch UNCLAIMED

$2999.99



Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch picture

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch

$129.99



Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module picture

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module

$699.99



Cisco Catalyst C9130AXI-B WiFi 6 802.11ax Wireless Access Point Brand New picture

Cisco Catalyst C9130AXI-B WiFi 6 802.11ax Wireless Access Point Brand New

$101.99



Cisco Nexus N9K-C92160YC-X 48P 25GbE SFP28 6P QSFP+/QSFP28 PE Switch picture

Cisco Nexus N9K-C92160YC-X 48P 25GbE SFP28 6P QSFP+/QSFP28 PE Switch

$439.00



Cisco | N3K-C3232C | 32-Port 100G QSFP Network Switch  W/ 2x PSU, 2x Power Cords picture

Cisco | N3K-C3232C | 32-Port 100G QSFP Network Switch W/ 2x PSU, 2x Power Cords

$240.00



Cisco C9300-48UXM-A Switch 9300 Series 48-port UPoE Network picture

Cisco C9300-48UXM-A Switch 9300 Series 48-port UPoE Network

$874.99



Cisco C9200-48P-E Cisco POE Network Switch picture

Cisco C9200-48P-E Cisco POE Network Switch

$749.99



nxa-pac-750w-pe v02 NEW OPEN BOX for Cisco Nexus 9300 Series power supply picture

nxa-pac-750w-pe v02 NEW OPEN BOX for Cisco Nexus 9300 Series power supply

$200.00



Cisco XFP-10G-MM-SR 10G XFP Transceiver picture

Cisco XFP-10G-MM-SR 10G XFP Transceiver

$79.89