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
  •  


Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM picture

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM

$1625.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed picture

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed

$49.99



867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001 picture

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001

$245.00



Dell PowerEdge R750 2x Xeon Gold 6326 96GB 12x1.92TB SSD H755 Win 2022 picture

Dell PowerEdge R750 2x Xeon Gold 6326 96GB 12x1.92TB SSD H755 Win 2022

$4999.00



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W

$409.99



Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p picture

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p

$499.88



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD

$378.93



Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server picture

Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server

$349.99



Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed picture

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed

$94.95