自启动问题

请问如何让程序在QNX启动时自动启动?即:QNX像WINDOWS一样,自动登录系统,然后自动启动软件,显示软件界面,实现自动监控???

在/etc/rc.d目录下增加rc.local,将你需要执行的程序添加到rc.local文件中

QNX可否跟WINDOWS一样自动登录呢?就是不要输入用户名和密码自动登录

跳过登陆框直接登陆

/etc/rc.d/rc.local [注:其它一些需系统启动时自动运行的程序也可放在此文件下]

arrange to bypass the login prompt when booting into Photon, by adding this:
/usr/photon/bin/Photon -l ‘/usr/photon/bin/phlogin -O -Uuser:password’

The -O option to phlogin brings you back to text mode when you terminate your Photon session; without the -O, pressing Ctrl-Shift-Alt-Backspace simply logs you in again.

Alternatively, you can set up a user’s .profile to start Photon (with the ph command), and then add this command to your rc.local file:
login -f user_name

如何实现QNX自动登录后,自动运行自己的程序呢?我利用vi在rc.local输入如下指令:

/usr/photon/bin/Photon -l '/usr/photon/bin/phlogin -O -Uuser:password'
/home/mypro

系统不先自动登录而是直接运行mypro的程序,程序退出后再自动登录QNX。

我想实现的是系统先自动登录,然后再自动运行mypro的程序,该如何实现?