After the boot process is final on a QNX4 OS, can i force the system, not to
go on /dev/con0 go to /dev/con1by example.
Can i put a command into the systinit file to do this !
Thank
–
After the boot process is final on a QNX4 OS, can i force the system, not to
go on /dev/con0 go to /dev/con1by example.
Can i put a command into the systinit file to do this !
Thank
–
If I understand what your asking, yes you can.
In sysinit you can add a line like
“reopen /dev/con1by”
note: this is old sytle, or you can add
“exec <> /dev/con1by 2> /dev/con1by”
This is new style but I’m not certain of that exact syntax. They both do
pretty much the same thing. They close and reopen file descriptors 0, 1 and
2.
Therefore anything that the shell that is processing the sysinit file loads
will also use these new file descriptors (pretty standard U*IX stuff).
On the other hand, if you want login prompts to show up on /dev/con1by you
need to change or add to the tinit line in sysinit file to indicate this new
device. Note that tinit does accept wildcard characters. SO a line like
“tinit -t /dev/con1by*”
would load login prompts on /dev/con1by1, /dev/con1by2 & /dev/con1by3,
assuming that they all existed.
Good luck
Bill Caroselli
“Roger Parent @ Sigma Inc.” <rparent@sigma-techno.com> wrote in message
news:9haipm$f60$1@inn.qnx.com…
After the boot process is final on a QNX4 OS, can i force the system, not
to
go on /dev/con0 go to /dev/con1by example.Can i put a command into the systinit file to do this !
Thank
–
Sigma Automatisation Inc.
Roger Parent
6 Patrice Cote C.P.130
Trois-Pistoles, Qc G0L 4K0
Tel: 418-851-4254 ou 418-857-2172 Ext 121
Fax: 418-851-4580
Email: > rparent@sigma-techno.com
Web: > www.sigma-techno.com
No. That not what i’m want to do, but you command can be useful.
What i want to do;
When QNX 4 boot it put you on /dev/con1.
Into the sysinit file, i launch a program that display information on
/dev/con2.
I want to add a command into the sysinit, to display these screen /dev/con2.
I don’t want to redirect the error console /dev/con1 to another want.
I just want to display /dev/con2, because the person who use the QNX system,
have to do CTRL-ALT-2 to see this console /dev/con2.
Thanks Roger.
“Bill Caroselli @ Q-TPS” <BillCaroselli@Q-TPS.com> a écrit dans le message
news: 9hb7ed$qj9$1@inn.qnx.com…
If I understand what your asking, yes you can.
In sysinit you can add a line like
“reopen /dev/con1by”
note: this is old sytle, or you can add
“exec <> /dev/con1by 2> /dev/con1by”
This is new style but I’m not certain of that exact syntax. They both do
pretty much the same thing. They close and reopen file descriptors 0, 1
and
2.Therefore anything that the shell that is processing the sysinit file
loads
will also use these new file descriptors (pretty standard U*IX stuff).On the other hand, if you want login prompts to show up on /dev/con1by you
need to change or add to the tinit line in sysinit file to indicate this
new
device. Note that tinit does accept wildcard characters. SO a line like
“tinit -t /dev/con1by*”
would load login prompts on /dev/con1by1, /dev/con1by2 & /dev/con1by3,
assuming that they all existed.Good luck
Bill Caroselli
“Roger Parent @ Sigma Inc.” <> rparent@sigma-techno.com> > wrote in message
news:9haipm$f60$> 1@inn.qnx.com> …
After the boot process is final on a QNX4 OS, can i force the system,
not
to
go on /dev/con0 go to /dev/con1by example.Can i put a command into the systinit file to do this !
Thank
–
Sigma Automatisation Inc.
Roger Parent
6 Patrice Cote C.P.130
Trois-Pistoles, Qc G0L 4K0
Tel: 418-851-4254 ou 418-857-2172 Ext 121
Fax: 418-851-4580
Email: > rparent@sigma-techno.com
Web: > www.sigma-techno.com
\
Roger Parent @ Sigma Inc. <rparent@sigma-techno.com> wrote:
: What i want to do;
: When QNX 4 boot it put you on /dev/con1.
: Into the sysinit file, i launch a program that display information on
: /dev/con2.
: I want to add a command into the sysinit, to display these screen /dev/con2.
: I just want to display /dev/con2, because the person who use the QNX system,
: have to do CTRL-ALT-2 to see this console /dev/con2.
Write a small program that uses the “console_active()” call to switch to
a different console, and place this command near the end of your sysinit.
Roger Parent @ Sigma Inc. <rparent@sigma-techno.com> wrote:
No. That not what i’m want to do, but you command can be useful.
What i want to do;
When QNX 4 boot it put you on /dev/con1.
Into the sysinit file, i launch a program that display information on
/dev/con2.I want to add a command into the sysinit, to display these screen /dev/con2.
on -t /dev/con2 program
QNX Training Services
dagibbs@qnx.com
Both John and Dave’s comments are good, but different.
It depends on what you really want to accomplish, which BTW, I still not
sure of.
The ‘on -t /dev/??? programName’ will load just programName on that other
device but keep the current console the one that sysinit in running on, i.e.
/dev/con1.
The console_active() function (very easy to use BTW) will simulate someone
hitting --<2> or whatever for you.
Example: When you have several applications running on different consoles,
and one application encounters an emergency situation that requires an
operator respond immediately, you can use the console_active() to force that
console to be the visible one regardless of which one was visible.
Hope this helps.
Bill Caroselli
“David Gibbs” <dagibbs@qnx.com> wrote in message
news:9hco3i$kb7$1@nntp.qnx.com…
Roger Parent @ Sigma Inc. <> rparent@sigma-techno.com> > wrote:
No. That not what i’m want to do, but you command can be useful.What i want to do;
When QNX 4 boot it put you on /dev/con1.
Into the sysinit file, i launch a program that display information on
/dev/con2.I want to add a command into the sysinit, to display these screen
/dev/con2.on -t /dev/con2 program
-David
QNX Training Services
dagibbs@qnx.com
I have tested console_active and this is the best for me !
Thanks a lot.
“Bill Caroselli @ Q-TPS” <BillCaroselli@Q-TPS.com> a écrit dans le message
news: 9hd351$1i6$1@inn.qnx.com…
Both John and Dave’s comments are good, but different.
It depends on what you really want to accomplish, which BTW, I still not
sure of.The ‘on -t /dev/??? programName’ will load just programName on that other
device but keep the current console the one that sysinit in running on,
i.e.
/dev/con1.The console_active() function (very easy to use BTW) will simulate someone
hitting --<2> or whatever for you.Example: When you have several applications running on different
consoles,
and one application encounters an emergency situation that requires an
operator respond immediately, you can use the console_active() to force
that
console to be the visible one regardless of which one was visible.Hope this helps.
Bill Caroselli
“David Gibbs” <> dagibbs@qnx.com> > wrote in message
news:9hco3i$kb7$> 1@nntp.qnx.com> …
Roger Parent @ Sigma Inc. <> rparent@sigma-techno.com> > wrote:
No. That not what i’m want to do, but you command can be useful.What i want to do;
When QNX 4 boot it put you on /dev/con1.
Into the sysinit file, i launch a program that display information on
/dev/con2.I want to add a command into the sysinit, to display these screen
/dev/con2.on -t /dev/con2 program
-David
QNX Training Services
dagibbs@qnx.com