-
Junior Member
registered user
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...
-
Senior Member
registered user
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.
-
Junior Member
registered user
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 ...
-
Senior Member
registered user
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
-
By atrick-pay in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 05-03-2005, 05:04 AM
-
By sirknot in forum MS Windows & New to Linux
Replies: 3
Last Post: 02-10-2005, 08:34 PM
-
By sirknot in forum MS Windows & New to Linux
Replies: 3
Last Post: 02-10-2005, 06:35 AM
-
By s10237 in forum General Support
Replies: 0
Last Post: 01-09-2005, 03:08 PM
-
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
-
Forum Rules
![1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture](/store/img/g/PDMAAOSwlhdmFJ5R/s-l225/1TB-2TB-USB-3-0-Flash-Drive-Thumb-U-Disk-Memory-St.jpg)
1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot
$80.39
![Windows 11 Pro USB Flash Drive With Code picture](/store/img/g/ILQAAOSwu3BmFZ7i/s-l225/Windows-11-Pro-USB-Flash-Drive-With-Code.jpg)
Windows 11 Pro USB Flash Drive With Code
$35.00
![USB Flash Drive Memory Stick Pendrive Thumb Drive 4GB, 8GB, 32GB, 64GB 128GB LOT picture](/store/img/g/EI0AAOSwsBpju-XZ/s-l225/USB-Flash-Drive-Memory-Stick-Pendrive-Thumb-Drive-.jpg)
USB Flash Drive Memory Stick Pendrive Thumb Drive 4GB, 8GB, 32GB, 64GB 128GB LOT
$239.38
![Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot picture](/store/img/g/oroAAOSwsJNmFPcr/s-l225/Type-C-USB-3-0-Flash-Drive-Thumb-Drive-Memory-Stic.jpg)
Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot
$73.29
![64GB USB 3.0 Flash Drive USB Memory Stick High Speed Retractable USB Thumb Drive picture](/store/img/g/1Q4AAOSwDeRivXJz/s-l225/64GB-USB-3-0-Flash-Drive-USB-Memory-Stick-High-Spe.jpg)
64GB USB 3.0 Flash Drive USB Memory Stick High Speed Retractable USB Thumb Drive
$6.99
![Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack picture](/store/img/g/H94AAOSw8zNjfbQ9/s-l225/Sandisk-16GB-32GB-64GB-128GB-Cruzer-Blade-Flash-Dr.jpg)
Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack
$4.99
![1TB 2TB Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop New picture](/store/img/g/4x0AAOSwjUVmBRJ-/s-l225/1TB-2TB-Type-C-USB-3-0-Flash-Drive-Thumb-Drive-Mem.jpg)
1TB 2TB Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop New
$9.99
![2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage New picture](/store/img/g/hh0AAOSwdcBl~UdE/s-l225/2TB-USB-3-0-Flash-Drive-Thumb-U-Disk-Memory-Stick-.jpg)
2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage New
$10.79
![Lot SanDisk USB Flash Drive Cruzer Blade Glade Force Ultra Flair Luxe 3.0 3.1 picture](/store/img/g/oQUAAOSwxwNj1Sfz/s-l225/Lot-SanDisk-USB-Flash-Drive-Cruzer-Blade-Glade-For.jpg)
Lot SanDisk USB Flash Drive Cruzer Blade Glade Force Ultra Flair Luxe 3.0 3.1
$149.99
![1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot picture](/store/img/g/OkQAAOSwUTBlYB-S/s-l225/1-10-100pcs-USB-2-0-2GB-4GB-8GB-16GB-32GB-64GB-128.jpg)
1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot
$450.00