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 Gray AC Power Cable Cord 3-Prong Plug to 3-Prong 3-Slot Connector picture

Vintage Gray AC Power Cable Cord 3-Prong Plug to 3-Prong 3-Slot Connector

$50.00



Vintage HP 21MX 1000 M-Series Minicomputer Chassis Backplane Parts AS-IS picture

Vintage HP 21MX 1000 M-Series Minicomputer Chassis Backplane Parts AS-IS

$228.19



NEW* AMD Athlon 4850e 4GB ATI X300 Win98 XP DOS Multiboot Retro PC w/ 50 Games picture

NEW* AMD Athlon 4850e 4GB ATI X300 Win98 XP DOS Multiboot Retro PC w/ 50 Games

$349.00



NEW* AMD Athlon 4850e 4GB ATI X1050 Win98 XP DOS Multiboot Retro PC w/ 50 Games picture

NEW* AMD Athlon 4850e 4GB ATI X1050 Win98 XP DOS Multiboot Retro PC w/ 50 Games

$389.00



Vintage Microsoft 16-bit software lot - Windows/DOS picture

Vintage Microsoft 16-bit software lot - Windows/DOS

$99.00



Vintage Microsoft Green-Eyed Mouse 1983 First Gen Bus connector Tested - Video picture

Vintage Microsoft Green-Eyed Mouse 1983 First Gen Bus connector Tested - Video

$350.00



10 Pounds Vintage Ceramic CPU Processor/ic chips Gold Recovery Computers Scrap picture

10 Pounds Vintage Ceramic CPU Processor/ic chips Gold Recovery Computers Scrap

$1999.99



Vintage Rare Packard Bell R500 A950-TWR with Microsoft Windows 95 Microsoft Plus picture

Vintage Rare Packard Bell R500 A950-TWR with Microsoft Windows 95 Microsoft Plus

$175.00



Lot of 2 Vintage Plextor PX-43CS SCSI CD-ROM Caddy Drives + 4 Caddies Used picture

Lot of 2 Vintage Plextor PX-43CS SCSI CD-ROM Caddy Drives + 4 Caddies Used

$55.99



Vintage Noteworthy RT5158TW Computer Keyboard Windows 98 NT Tested Working picture

Vintage Noteworthy RT5158TW Computer Keyboard Windows 98 NT Tested Working

$39.99