OpenQNX :: The QNX Community Portal

Jul 05, 2008 - 10:51 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 44 unlogged users and 1 registered user online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
glansberry
Post subject: How do I automatically start a program  PostPosted: May 05, 2004 - 05:48 PM
Active Member


Joined: Feb 04, 2004
Posts: 13

So, we have written this great application. We can login to our qnx
target, copy the file over and run it. Now we want the machine to run the
application every time it powers up, without requiring someone to log in.
Where is the equivalent of MS-DOS' autoexec.bat file? Do I create a file
called RC and put it in the etc directory?

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
Miguel Simon
Post subject: Re: How do I automatically start a program  PostPosted: May 06, 2004 - 02:20 AM
Guest





Hi Geoff

Go to /etc/rc.d and create a file called rc.local, in it (among other
things) you can start a program on startup if you write a line such as:

on -t con2 /usr/local/bin/rtw.2.d
on -t con3 /usr/local/bin/rtw.3.d
on -t con4 /usr/local/bin/rtw.4.d

This will start a program called 'rtwd.2.d' located in /usr/local/bin in
console # 2, 'rtwd.3.d' in console 3, etc. If you want the programs to
never die, look into the HAM framework. Also look at other options for
'on'. Make sure that the rc.local file has executable permission.

Regards...

Miguel.



Geoff Lansberry wrote:
Quote:
So, we have written this great application. We can login to our qnx
target, copy the file over and run it. Now we want the machine to run the
application every time it powers up, without requiring someone to log in.
Where is the equivalent of MS-DOS' autoexec.bat file? Do I create a file
called RC and put it in the etc directory?

Thanks

 
   
Reply with quote Back to top
EdizonTN
Post subject: inetd problem  PostPosted: May 13, 2004 - 09:31 AM
New Member


Joined: Oct 01, 2004
Posts: 4

Hallo

I have a problem with inetd.
I cannot start inetd.Where is .log file about inetd errors?
How I set to automaticaly starting inetd daemon?

-ed.
 
 View user's profile Send private message Visit poster's website AIM Address ICQ Number 
Reply with quote Back to top
Xiaodan Tang
Post subject: Re: inetd problem  PostPosted: May 14, 2004 - 01:54 AM
Guest





inetd will automaticlly go to daemon mode (background) after start.
You sure it is not running after you start it first time? Does pidin show
it exist? Does netstat -a show something ?

inetd send it's errors to syslog, so start syslogd correctly first, would
give you some idea of what is inetd doing. You can also start inetd
with -d where it is in debug mode, and won't go back ground.

To auto-start inetd, creat /etc/rc.d/rc.local, chmod a+x it, and start
inetd in that file.

-xtang



ed <edizon@softhome.net> wrote in message news:c7vf8p$ohp$1@inn.qnx.com...
Quote:
Hallo

I have a problem with inetd.
I cannot start inetd.Where is .log file about inetd errors?
How I set to automaticaly starting inetd daemon?

-ed.
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.