View topic - Script must Start after reboot PC

Script must Start after reboot PC

anything that doesn't fit to other groups.

Script must Start after reboot PC

Postby verynew » Sat May 01, 2021 2:32 pm

I'am using QNX6.5 and have the following problem.
I use a Bash Script and the Script must start after every reboot Form the PC.
With the crontab it is Not possible.
Hast anybody a solution ?
New Member
Posts: 4
Joined: Mon Oct 27, 2014 7:54 pm

Re: Script must Start after reboot PC

Postby Tim » Mon May 03, 2021 12:59 pm ... rting.html

Call your script from rc.local (which likely doesn't exist so you may have to create one that just calls your script).

rc.sysinit and rc.local get run automatically at boot time.

Senior Member
Posts: 1522
Joined: Wed Mar 10, 2004 12:28 am

Re: Script must Start after reboot PC

Postby maschoen » Tue May 04, 2021 4:18 am

I agree with everything Tim had to say.

It's probably best to run your script from rc.local.

It might be of interest, but none of this is prescribed by QNX, it is just convention which is commonly left alone.

If you build your own boot file, you can run whatever you want at startup. By convention, the build file does the minimum it needs to, and then starts a disk driver, mounts root and runs the shell script /etc/rc.sysinit. rc.local is called from within this script.

If you are deploying an embedded system and want to keep the users nosy eyes away from what is going on, you can embed your own startup script in the build file and run it. If it is a bash script you would need to make bash part of your .boot file.
QNX Master
Posts: 2731
Joined: Wed Jun 25, 2003 5:18 pm

Return to General Programming

Who is online

Users browsing this forum: No registered users and 5 guests