-
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
Samsung Galaxy Tab A8 10.5" SM-X200 64GB Wifi Only Tablet Open Box
$139.99
Samsung - S Pen Creator Edition - White
$38.00
Samsung 990 PRO 1TB Internal SSD PCle Gen 4x4 NVMe NO HEAT SINK
$85.99
Samsung 32GB PC4-17000 (DDR4-2133) Memory (M393A4K40BB0-CPB4Q)
$25.00
SAMSUNG AM-P613NZBMXAR Galaxy S6 Lite 2022 10.4" 64GB Wi-Fi Tablet With S Pen,
$134.00
Samsung Galaxy Tab A9 (X110) 64GB 4GB RAM International Version (New)
$126.99
Samsung USB 3.2 Gen 1 Type-C 128GB Flash Drive 2022 (up to 400MB/s) MUF-128DA/AM
$15.44
Samsung Galaxy Tab A9+ 11.0" 64GB Gray Wi-Fi Tablet Bundle SM-X210NZAYXAR 2023
$149.99
Samsung Galaxy Tab S9 Ultra Smart Book Cover EF-BX910PBEGUJ Black Nice Preowend
$49.99
Samsung Book Cover Keyboard For Galaxy Tab S9+ S9 FE+ EFDX815UBEGUJ NICE USED
$129.99