SIGTERM/SIGINT, ^C on a bootable floppy.

Good Morning,

I have an application that I need to run from a bootable 3.5 floppy.
I’ve made the bootable floppy image to contain many usefull tools from the
/bin dir (sin, ps, ksh,stty,termdef…) .
The problem that I’m having is that part of my application runs in an
ifinate loop and must be interrupted by a
Cntrl-C. My application is trapping SIGKILL, SIGTERM, and SIGINT and
exiting when these are recieved.

This all works fine on my development box but does not work from the
bootable floppy.

The Cntrl-C is simply ignored.
I have the TERM set to be qnx (I’ve tried qansi and ansi as well), here’s my
ENV.

HOME=/
IFS=

KSH_VERSION=QNX 4.20
MAILCHECK=600
NODE=1
OPTIND=1
PATH=/bin:/etc:/usr/bin
PS1=#
PS2=>
PWD=//1/
SECONDS=199
SHELL=/bin/sh
SHLEVEL=1
TERM=qnx
_=set

I have the following /usr/lib/terminfo data on the floppy.

drwxrwxr-x 7 0 0 1024 Jan 19 2001 .
drwxrwxrwx 3 0 0 1024 Jan 19 2001 …
drwxr-xr-x 2 0 0 1024 Apr 06 2000 a
drwxr-xr-x 2 0 0 2048 Apr 06 2000 q
drwxr-xr-x 2 0 0 1024 Apr 06 2000 t
-rw-rw-r-- 1 0 0 21581 Aug 26 1997 terminfo.src
drwxr-xr-x 2 0 0 1024 Apr 06 2000 v
drwxr-xr-x 2 0 0 1024 Apr 06 2000 x

drwxr-xr-x 2 0 0 2048 Apr 06 2000 .
drwxrwxr-x 7 0 0 1024 Jan 19 2001 …
-rw-rw-r-- 1 0 0 2295 Mar 19 1999 qansi
-rw-rw-r-- 1 0 0 2092 Mar 19 1999 qansi-g
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-m
-rw-rw-r-- 1 0 0 2301 Mar 19 1999 qansi-t
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-w
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnx2
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx4
-rw-rw-r-- 1 0 0 1758 Mar 19 1999 qnxm
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnxs2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt
-rw-rw-r-- 1 0 0 1371 Mar 19 1999 qnxt2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt4
-rw-rw-r-- 1 0 0 1707 Mar 19 1999 qnxtmono
-rw-rw-r-- 1 0 0 1748 Mar 19 1999 qnxw
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt101
-rw-rw-r-- 1 0 0 1033 Mar 19 1999 qvt102
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt108




From the ksh I can see the ^C when I type it but it will not interrupt a
process run from that shell, what am I missing?

Also if I attempt to run “vi” from the floppy I get, Unrecognized TERM
type.

Here’s some sin data:
Node CPU Machine Speed Memory Ticksize Display
Flags
1 586/587 PCI 18930 31367k/33157k 10.0ms VGA
Color -3P±---------8P

Heapp Heapf Heapl Heapn Hands Names Sessions Procs Timers Nodes Virtual
0 0 4384 0 64 100 64 100 125 1 29M/
41M

Boot from Flop at — – --:-- Locators:

SID PID PROGRAM PRI STATE BLK CODE DATA
– – Microkernel — ----- — 12976 0
0 1 sys/Proc32 30f READY — 122k 155k
0 2 sys/Slib32 10r RECV 0 53k 4096
0 4 /bin/Fsys 10r RECV 0 77k 806k
0 5 /bin/Fsys.floppy 10o RECV 0 20k 28k
0 7 //1/bin/ksh 10o WAIT -1 47k 32k
0 8 idle 0r READY — 0 0
0 14 //1/bin/Dev 24f RECV 0 32k 73k
0 17 //1/bin/Dev.ansi 20r RECV 0 40k 69k
0 19 //1/bin/ksh 10o WAIT -1 47k 36k
0 37 //1/bin/sin 10o REPLY 1 45k 32k


Thanks,

Scott Graunke
Sterling Computer Systems
sgraunke@sterling1.com

Use
stty
to check your console settings.
Ensure editting mode is enabled and an interrupt character is defined
+edit
intr=^C
Also check whether in your sysinit for the floppy you are starting console support as you do on the
harddisk:
Dev.ansi -Q -n10 & # Or Similar
reopen // 0/dev/con1 # no space after // just so email doesn’t replace text with a link

-Paul
(For QNX4)

Scott Graunke sgraunke**nospam**@sterling1.com wrote in message news:949tnh$pab$1@inn.qnx.com

Good Morning,

I have an application that I need to run from a bootable 3.5 floppy.
I’ve made the bootable floppy image to contain many usefull tools from the
/bin dir (sin, ps, ksh,stty,termdef…) .
The problem that I’m having is that part of my application runs in an
ifinate loop and must be interrupted by a
Cntrl-C. My application is trapping SIGKILL, SIGTERM, and SIGINT and
exiting when these are recieved.

This all works fine on my development box but does not work from the
bootable floppy.

The Cntrl-C is simply ignored.
I have the TERM set to be qnx (I’ve tried qansi and ansi as well), here’s my
ENV.

HOME=/
IFS=

KSH_VERSION=QNX 4.20
MAILCHECK=600
NODE=1
OPTIND=1
PATH=/bin:/etc:/usr/bin
PS1=#
PS2=
PWD=//1/
SECONDS=199
SHELL=/bin/sh
SHLEVEL=1
TERM=qnx
_=set

I have the following /usr/lib/terminfo data on the floppy.

drwxrwxr-x 7 0 0 1024 Jan 19 2001 .
drwxrwxrwx 3 0 0 1024 Jan 19 2001 …
drwxr-xr-x 2 0 0 1024 Apr 06 2000 a
drwxr-xr-x 2 0 0 2048 Apr 06 2000 q
drwxr-xr-x 2 0 0 1024 Apr 06 2000 t
-rw-rw-r-- 1 0 0 21581 Aug 26 1997 terminfo.src
drwxr-xr-x 2 0 0 1024 Apr 06 2000 v
drwxr-xr-x 2 0 0 1024 Apr 06 2000 x

drwxr-xr-x 2 0 0 2048 Apr 06 2000 .
drwxrwxr-x 7 0 0 1024 Jan 19 2001 …
-rw-rw-r-- 1 0 0 2295 Mar 19 1999 qansi
-rw-rw-r-- 1 0 0 2092 Mar 19 1999 qansi-g
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-m
-rw-rw-r-- 1 0 0 2301 Mar 19 1999 qansi-t
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-w
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnx2
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx4
-rw-rw-r-- 1 0 0 1758 Mar 19 1999 qnxm
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnxs2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt
-rw-rw-r-- 1 0 0 1371 Mar 19 1999 qnxt2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt4
-rw-rw-r-- 1 0 0 1707 Mar 19 1999 qnxtmono
-rw-rw-r-- 1 0 0 1748 Mar 19 1999 qnxw
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt101
-rw-rw-r-- 1 0 0 1033 Mar 19 1999 qvt102
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt108




From the ksh I can see the ^C when I type it but it will not interrupt a
process run from that shell, what am I missing?

Also if I attempt to run “vi” from the floppy I get, Unrecognized TERM
type.

Here’s some sin data:
Node CPU Machine Speed Memory Ticksize Display
Flags
1 586/587 PCI 18930 31367k/33157k 10.0ms VGA
Color -3P±---------8P

Heapp Heapf Heapl Heapn Hands Names Sessions Procs Timers Nodes Virtual
0 0 4384 0 64 100 64 100 125 1 29M/
41M

Boot from Flop at — – --:-- Locators:

SID PID PROGRAM PRI STATE BLK CODE DATA
– – Microkernel — ----- — 12976 0
0 1 sys/Proc32 30f READY — 122k 155k
0 2 sys/Slib32 10r RECV 0 53k 4096
0 4 /bin/Fsys 10r RECV 0 77k 806k
0 5 /bin/Fsys.floppy 10o RECV 0 20k 28k
0 7 file://1/bin/ksh 10o WAIT -1 47k 32k
0 8 idle 0r READY — 0 0
0 14 file://1/bin/Dev 24f RECV 0 32k 73k
0 17 file://1/bin/Dev.ansi 20r RECV 0 40k 69k
0 19 file://1/bin/ksh 10o WAIT -1 47k 36k
0 37 file://1/bin/sin 10o REPLY 1 45k 32k


Thanks,

Scott Graunke
Sterling Computer Systems
sgraunke@sterling1.com


\

Paul,

The stty looks okay and the sysinit starts the same support as the hard disk
system.

Here’s the output from stty:

Name: //1/dev/con1
Type: console
Opens: 1 (RW)
Sigint Grp: 0, Sighup pid: 0
-parenb -parodd -parstk -cstopb -inpck -hupcl +cread -clocal +isig +icanon
+iexten +echo +echoe +echok -echonl -noflsh -ignbrk +brkint -ignpar -parmrk
-istrip -inlcr -igncr +icrnl +opost
-isflow +osflow -ihflow -ohflow -lkhflow -lksflow +lkiexten -wtsflow -nopgrp
-echoi -ispaged -ospaged -ihpaged -ohpaged
intr=^C quit=^- erase=^? kill=^U eof=^D eol=^- start=^Q stop=^S
susp=^- min=01 time=00 pr1=FF pr2=^- pr3=^- pr4=^- sf1=^-
sf2=^- sf3=^- sf4=^- left=A4 right=A6 up=A1 down=A9 ins=AB
del=AC rub=^- can=^- home=A0 end=A8
par=none bits=8 stopb=1 ispeed=300 ospeed=38400 rows=25,80
-numlock -capslock -scrlock font=0 protocol=0
-noboot -noswitch -nodebug -noresize -nohotkey
-invisible -nohscroll -nocolor -monocurs -scanmode -extmode

and a copy of my sysinit:

set -i
Dev -n 100 &
Dev.con -n 4 &
reopen //0/dev/con1
ksh
#/idb_tool

The only things that I’ve noticed that are strange is the fact that the line
from stty Sigint Grp: 0, Sighup pid: 0
has a Grp and Pid of 0, on the hard disk system it has the Pid of a /bin/sh,
I assume this is because the HD system
uses login. The other strange thing is that the HD system has /dev/con1-X
AND /dev/console thee floppy system
only has /dev/con1-X NO /dev/console.

Could either of this two issues be causing this?

Why does vi return “Unrecognized TERM type”?

Thanks,

Scott

“Paul Russell” <paul@jenosys.com> wrote in message
news:94a8mm$2nd$1@inn.qnx.com

Use
stty
to check your console settings.
Ensure editting mode is enabled and an interrupt character is defined
+edit
intr=^C
Also check whether in your sysinit for the floppy you are starting console
support as you do on the
harddisk:
Dev.ansi -Q -n10 & # Or Similar
reopen // 0/dev/con1 # no space after // just so email doesn’t
replace text with a link

-Paul
(For QNX4)

Scott Graunke sgraunke**nospam**@sterling1.com wrote in message
news:949tnh$pab$> 1@inn.qnx.com> …
Good Morning,

I have an application that I need to run from a bootable 3.5 floppy.
I’ve made the bootable floppy image to contain many usefull tools from
the
/bin dir (sin, ps, ksh,stty,termdef…) .
The problem that I’m having is that part of my application runs in an
ifinate loop and must be interrupted by a
Cntrl-C. My application is trapping SIGKILL, SIGTERM, and SIGINT and
exiting when these are recieved.

This all works fine on my development box but does not work from the
bootable floppy.

The Cntrl-C is simply ignored.
I have the TERM set to be qnx (I’ve tried qansi and ansi as well),
here’s my
ENV.

HOME=/
IFS=

KSH_VERSION=QNX 4.20
MAILCHECK=600
NODE=1
OPTIND=1
PATH=/bin:/etc:/usr/bin
PS1=#
PS2=
PWD=//1/
SECONDS=199
SHELL=/bin/sh
SHLEVEL=1
TERM=qnx
_=set

I have the following /usr/lib/terminfo data on the floppy.

drwxrwxr-x 7 0 0 1024 Jan 19 2001 .
drwxrwxrwx 3 0 0 1024 Jan 19 2001 …
drwxr-xr-x 2 0 0 1024 Apr 06 2000 a
drwxr-xr-x 2 0 0 2048 Apr 06 2000 q
drwxr-xr-x 2 0 0 1024 Apr 06 2000 t
-rw-rw-r-- 1 0 0 21581 Aug 26 1997 terminfo.src
drwxr-xr-x 2 0 0 1024 Apr 06 2000 v
drwxr-xr-x 2 0 0 1024 Apr 06 2000 x

drwxr-xr-x 2 0 0 2048 Apr 06 2000 .
drwxrwxr-x 7 0 0 1024 Jan 19 2001 …
-rw-rw-r-- 1 0 0 2295 Mar 19 1999 qansi
-rw-rw-r-- 1 0 0 2092 Mar 19 1999 qansi-g
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-m
-rw-rw-r-- 1 0 0 2301 Mar 19 1999 qansi-t
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-w
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnx2
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx4
-rw-rw-r-- 1 0 0 1758 Mar 19 1999 qnxm
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnxs2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt
-rw-rw-r-- 1 0 0 1371 Mar 19 1999 qnxt2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt4
-rw-rw-r-- 1 0 0 1707 Mar 19 1999 qnxtmono
-rw-rw-r-- 1 0 0 1748 Mar 19 1999 qnxw
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt101
-rw-rw-r-- 1 0 0 1033 Mar 19 1999 qvt102
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt108




From the ksh I can see the ^C when I type it but it will not interrupt a
process run from that shell, what am I missing?

Also if I attempt to run “vi” from the floppy I get, Unrecognized TERM
type.

Here’s some sin data:
Node CPU Machine Speed Memory Ticksize Display
Flags
1 586/587 PCI 18930 31367k/33157k 10.0ms VGA
Color -3P±---------8P

Heapp Heapf Heapl Heapn Hands Names Sessions Procs Timers Nodes Virtual
0 0 4384 0 64 100 64 100 125 1 29M/
41M

Boot from Flop at — – --:-- Locators:

SID PID PROGRAM PRI STATE BLK CODE DATA
– – Microkernel — ----- — 12976 0
0 1 sys/Proc32 30f READY — 122k 155k
0 2 sys/Slib32 10r RECV 0 53k 4096
0 4 /bin/Fsys 10r RECV 0 77k 806k
0 5 /bin/Fsys.floppy 10o RECV 0 20k 28k
0 7 file://1/bin/ksh 10o WAIT -1 47k 32k
0 8 idle 0r READY — 0 0
0 14 file://1/bin/Dev 24f RECV 0 32k 73k
0 17 file://1/bin/Dev.ansi 20r RECV 0 40k 69k
0 19 file://1/bin/ksh 10o WAIT -1 47k 36k
0 37 file://1/bin/sin 10o REPLY 1 45k 32k


Thanks,

Scott Graunke
Sterling Computer Systems
sgraunke@sterling1.com




\

For vi look for “TERM=” in the output of set. I believe this is set by
termdef or login, depending on how you connect.

I use Dev32.ansi, but if Dev.con works on the HD you should be OK.

Also - you’re not using login!!! Just starting a Shell directly…
Maybe you should try “login -f username” instead.

-Paul

Scott Graunke sgraunke**nospam**@sterling1.com wrote in message news:94ahbs$7g8$1@inn.qnx.com

Paul,

The stty looks okay and the sysinit starts the same support as the hard disk
system.

Here’s the output from stty:

Name: file://1/dev/con1
Type: console
Opens: 1 (RW)
Sigint Grp: 0, Sighup pid: 0
-parenb -parodd -parstk -cstopb -inpck -hupcl +cread -clocal +isig +icanon
+iexten +echo +echoe +echok -echonl -noflsh -ignbrk +brkint -ignpar -parmrk
-istrip -inlcr -igncr +icrnl +opost
-isflow +osflow -ihflow -ohflow -lkhflow -lksflow +lkiexten -wtsflow -nopgrp
-echoi -ispaged -ospaged -ihpaged -ohpaged
intr=^C quit=^- erase=^? kill=^U eof=^D eol=^- start=^Q stop=^S
susp=^- min=01 time=00 pr1=FF pr2=^- pr3=^- pr4=^- sf1=^-
sf2=^- sf3=^- sf4=^- left=A4 right=A6 up=A1 down=A9 ins=AB
del=AC rub=^- can=^- home=A0 end=A8
par=none bits=8 stopb=1 ispeed=300 ospeed=38400 rows=25,80
-numlock -capslock -scrlock font=0 protocol=0
-noboot -noswitch -nodebug -noresize -nohotkey
-invisible -nohscroll -nocolor -monocurs -scanmode -extmode

and a copy of my sysinit:

set -i
Dev -n 100 &
Dev.con -n 4 &
reopen file://0/dev/con1
ksh
#/idb_tool

The only things that I’ve noticed that are strange is the fact that the line
from stty Sigint Grp: 0, Sighup pid: 0
has a Grp and Pid of 0, on the hard disk system it has the Pid of a /bin/sh,
I assume this is because the HD system
uses login. The other strange thing is that the HD system has /dev/con1-X
AND /dev/console thee floppy system
only has /dev/con1-X NO /dev/console.

Could either of this two issues be causing this?

Why does vi return “Unrecognized TERM type”?

Thanks,

Scott

“Paul Russell” <> paul@jenosys.com> > wrote in message
news:94a8mm$2nd$> 1@inn.qnx.com> …
Use
stty
to check your console settings.
Ensure editting mode is enabled and an interrupt character is defined
+edit
intr=^C
Also check whether in your sysinit for the floppy you are starting console
support as you do on the
harddisk:
Dev.ansi -Q -n10 & # Or Similar
reopen // 0/dev/con1 # no space after // just so email doesn’t
replace text with a link

-Paul
(For QNX4)

Scott Graunke sgraunke**nospam**@sterling1.com wrote in message
news:949tnh$pab$> 1@inn.qnx.com> …
Good Morning,

I have an application that I need to run from a bootable 3.5 floppy.
I’ve made the bootable floppy image to contain many usefull tools from
the
/bin dir (sin, ps, ksh,stty,termdef…) .
The problem that I’m having is that part of my application runs in an
ifinate loop and must be interrupted by a
Cntrl-C. My application is trapping SIGKILL, SIGTERM, and SIGINT and
exiting when these are recieved.

This all works fine on my development box but does not work from the
bootable floppy.

The Cntrl-C is simply ignored.
I have the TERM set to be qnx (I’ve tried qansi and ansi as well),
here’s my
ENV.

HOME=/
IFS=

KSH_VERSION=QNX 4.20
MAILCHECK=600
NODE=1
OPTIND=1
PATH=/bin:/etc:/usr/bin
PS1=#
PS2=
PWD=//1/
SECONDS=199
SHELL=/bin/sh
SHLEVEL=1
TERM=qnx
_=set

I have the following /usr/lib/terminfo data on the floppy.

drwxrwxr-x 7 0 0 1024 Jan 19 2001 .
drwxrwxrwx 3 0 0 1024 Jan 19 2001 …
drwxr-xr-x 2 0 0 1024 Apr 06 2000 a
drwxr-xr-x 2 0 0 2048 Apr 06 2000 q
drwxr-xr-x 2 0 0 1024 Apr 06 2000 t
-rw-rw-r-- 1 0 0 21581 Aug 26 1997 terminfo.src
drwxr-xr-x 2 0 0 1024 Apr 06 2000 v
drwxr-xr-x 2 0 0 1024 Apr 06 2000 x

drwxr-xr-x 2 0 0 2048 Apr 06 2000 .
drwxrwxr-x 7 0 0 1024 Jan 19 2001 …
-rw-rw-r-- 1 0 0 2295 Mar 19 1999 qansi
-rw-rw-r-- 1 0 0 2092 Mar 19 1999 qansi-g
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-m
-rw-rw-r-- 1 0 0 2301 Mar 19 1999 qansi-t
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-w
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnx2
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx4
-rw-rw-r-- 1 0 0 1758 Mar 19 1999 qnxm
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnxs2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt
-rw-rw-r-- 1 0 0 1371 Mar 19 1999 qnxt2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt4
-rw-rw-r-- 1 0 0 1707 Mar 19 1999 qnxtmono
-rw-rw-r-- 1 0 0 1748 Mar 19 1999 qnxw
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt101
-rw-rw-r-- 1 0 0 1033 Mar 19 1999 qvt102
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt108




From the ksh I can see the ^C when I type it but it will not interrupt a
process run from that shell, what am I missing?

Also if I attempt to run “vi” from the floppy I get, Unrecognized TERM
type.

Here’s some sin data:
Node CPU Machine Speed Memory Ticksize Display
Flags
1 586/587 PCI 18930 31367k/33157k 10.0ms VGA
Color -3P±---------8P

Heapp Heapf Heapl Heapn Hands Names Sessions Procs Timers Nodes Virtual
0 0 4384 0 64 100 64 100 125 1 29M/
41M

Boot from Flop at — – --:-- Locators:

SID PID PROGRAM PRI STATE BLK CODE DATA
– – Microkernel — ----- — 12976 0
0 1 sys/Proc32 30f READY — 122k 155k
0 2 sys/Slib32 10r RECV 0 53k 4096
0 4 /bin/Fsys 10r RECV 0 77k 806k
0 5 /bin/Fsys.floppy 10o RECV 0 20k 28k
0 7 file://1/bin/ksh 10o WAIT -1 47k 32k
0 8 idle 0r READY — 0 0
0 14 file://1/bin/Dev 24f RECV 0 32k 73k
0 17 file://1/bin/Dev.ansi 20r RECV 0 40k 69k
0 19 file://1/bin/ksh 10o WAIT -1 47k 36k
0 37 file://1/bin/sin 10o REPLY 1 45k 32k


Thanks,

Scott Graunke
Sterling Computer Systems
sgraunke@sterling1.com






\

Figured out the vi issue, the floppy was missing /etc/termcap, Whoops!

As for Dev32.ansi, on QNX 4.25 Dev.con links to Dev.ansi which links to
Dev32.ansi,
anyways I have the right one.

Changing the sysinit to use tinit -T /dev/con* & and using login to start
the shell fixes the
^C problem. This is not what’s required though, I do not want to login, I
just want the floppy to
boot and start a diagnostic program.

When using login the stty showed Sigint Grp: 20, Sighup pid: 20, where 20 is
the pid of “-sh”.

How can this be accomplished without users, groups, logings, passwords?

Thanks,

Scott

“Paul Russell” <paul@jenosys.com> wrote in message
news:94ajfo$8on$1@inn.qnx.com

For vi look for “TERM=” in the output of set. I believe this is set by
termdef or login, depending on how you connect.

I use Dev32.ansi, but if Dev.con works on the HD you should be OK.

Also - you’re not using login!!! Just starting a Shell directly…
Maybe you should try “login -f username” instead.

-Paul

Scott Graunke sgraunke**nospam**@sterling1.com wrote in message
news:94ahbs$7g8$> 1@inn.qnx.com> …
Paul,

The stty looks okay and the sysinit starts the same support as the hard
disk
system.

Here’s the output from stty:

Name: file://1/dev/con1
Type: console
Opens: 1 (RW)
Sigint Grp: 0, Sighup pid: 0
-parenb -parodd -parstk -cstopb -inpck -hupcl +cread -clocal +isig
+icanon
+iexten +echo +echoe +echok -echonl -noflsh -ignbrk
+brkint -ignpar -parmrk
-istrip -inlcr -igncr +icrnl +opost
-isflow +osflow -ihflow -ohflow -lkhflow -lksflow
+lkiexten -wtsflow -nopgrp
-echoi -ispaged -ospaged -ihpaged -ohpaged
intr=^C quit=^- erase=^? kill=^U eof=^D eol=^- start=^Q stop=^S
susp=^- min=01 time=00 pr1=FF pr2=^- pr3=^- pr4=^- sf1=^-
sf2=^- sf3=^- sf4=^- left=A4 right=A6 up=A1 down=A9 ins=AB
del=AC rub=^- can=^- home=A0 end=A8
par=none bits=8 stopb=1 ispeed=300 ospeed=38400 rows=25,80
-numlock -capslock -scrlock font=0 protocol=0
-noboot -noswitch -nodebug -noresize -nohotkey
-invisible -nohscroll -nocolor -monocurs -scanmode -extmode

and a copy of my sysinit:

set -i
Dev -n 100 &
Dev.con -n 4 &
reopen file://0/dev/con1
ksh
#/idb_tool

The only things that I’ve noticed that are strange is the fact that the
line
from stty Sigint Grp: 0, Sighup pid: 0
has a Grp and Pid of 0, on the hard disk system it has the Pid of a
/bin/sh,
I assume this is because the HD system
uses login. The other strange thing is that the HD system has
/dev/con1-X
AND /dev/console thee floppy system
only has /dev/con1-X NO /dev/console.

Could either of this two issues be causing this?

Why does vi return “Unrecognized TERM type”?

Thanks,

Scott

“Paul Russell” <> paul@jenosys.com> > wrote in message
news:94a8mm$2nd$> 1@inn.qnx.com> …
Use
stty
to check your console settings.
Ensure editting mode is enabled and an interrupt character is defined
+edit
intr=^C
Also check whether in your sysinit for the floppy you are starting
console
support as you do on the
harddisk:
Dev.ansi -Q -n10 & # Or Similar
reopen // 0/dev/con1 # no space after // just so email doesn’t
replace text with a link

-Paul
(For QNX4)

Scott Graunke sgraunke**nospam**@sterling1.com wrote in message
news:949tnh$pab$> 1@inn.qnx.com> …
Good Morning,

I have an application that I need to run from a bootable 3.5 floppy.
I’ve made the bootable floppy image to contain many usefull tools
from
the
/bin dir (sin, ps, ksh,stty,termdef…) .
The problem that I’m having is that part of my application runs in
an
ifinate loop and must be interrupted by a
Cntrl-C. My application is trapping SIGKILL, SIGTERM, and SIGINT
and
exiting when these are recieved.

This all works fine on my development box but does not work from the
bootable floppy.

The Cntrl-C is simply ignored.
I have the TERM set to be qnx (I’ve tried qansi and ansi as well),
here’s my
ENV.

HOME=/
IFS=

KSH_VERSION=QNX 4.20
MAILCHECK=600
NODE=1
OPTIND=1
PATH=/bin:/etc:/usr/bin
PS1=#
PS2=
PWD=//1/
SECONDS=199
SHELL=/bin/sh
SHLEVEL=1
TERM=qnx
_=set

I have the following /usr/lib/terminfo data on the floppy.

drwxrwxr-x 7 0 0 1024 Jan 19 2001 .
drwxrwxrwx 3 0 0 1024 Jan 19 2001 …
drwxr-xr-x 2 0 0 1024 Apr 06 2000 a
drwxr-xr-x 2 0 0 2048 Apr 06 2000 q
drwxr-xr-x 2 0 0 1024 Apr 06 2000 t
-rw-rw-r-- 1 0 0 21581 Aug 26 1997
terminfo.src
drwxr-xr-x 2 0 0 1024 Apr 06 2000 v
drwxr-xr-x 2 0 0 1024 Apr 06 2000 x

drwxr-xr-x 2 0 0 2048 Apr 06 2000 .
drwxrwxr-x 7 0 0 1024 Jan 19 2001 …
-rw-rw-r-- 1 0 0 2295 Mar 19 1999 qansi
-rw-rw-r-- 1 0 0 2092 Mar 19 1999 qansi-g
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-m
-rw-rw-r-- 1 0 0 2301 Mar 19 1999 qansi-t
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-w
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnx2
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx4
-rw-rw-r-- 1 0 0 1758 Mar 19 1999 qnxm
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnxs2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt
-rw-rw-r-- 1 0 0 1371 Mar 19 1999 qnxt2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt4
-rw-rw-r-- 1 0 0 1707 Mar 19 1999 qnxtmono
-rw-rw-r-- 1 0 0 1748 Mar 19 1999 qnxw
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt101
-rw-rw-r-- 1 0 0 1033 Mar 19 1999 qvt102
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt108




From the ksh I can see the ^C when I type it but it will not
interrupt a
process run from that shell, what am I missing?

Also if I attempt to run “vi” from the floppy I get, Unrecognized
TERM
type.

Here’s some sin data:
Node CPU Machine Speed Memory Ticksize Display
Flags
1 586/587 PCI 18930 31367k/33157k 10.0ms VGA
Color -3P±---------8P

Heapp Heapf Heapl Heapn Hands Names Sessions Procs Timers Nodes
Virtual
0 0 4384 0 64 100 64 100 125 1
29M/
41M

Boot from Flop at — – --:-- Locators:

SID PID PROGRAM PRI STATE BLK CODE DATA
– – Microkernel — ----- — 12976 0
0 1 sys/Proc32 30f READY — 122k 155k
0 2 sys/Slib32 10r RECV 0 53k 4096
0 4 /bin/Fsys 10r RECV 0 77k 806k
0 5 /bin/Fsys.floppy 10o RECV 0 20k 28k
0 7 file://1/bin/ksh 10o WAIT -1 47k 32k
0 8 idle 0r READY — 0 0
0 14 file://1/bin/Dev 24f RECV 0 32k 73k
0 17 file://1/bin/Dev.ansi 20r RECV 0 40k 69k
0 19 file://1/bin/ksh 10o WAIT -1 47k 36k
0 37 file://1/bin/sin 10o REPLY 1 45k 32k


Thanks,

Scott Graunke
Sterling Computer Systems
sgraunke@sterling1.com








\

You are running with the initial process group from Proc and nothing
has been setup as far as controlling terminals.

Look at setsid(), setprgp(), and specifically tcsetpgrp() to get
setup as a session with a controlling terminal.

Jay

Scott Graunke wrote in message <94ahbs$7g8$1@inn.qnx.com>…

Paul,

The stty looks okay and the sysinit starts the same support as the hard
disk
system.

Here’s the output from stty:

Name: file://1/dev/con1
Type: console
Opens: 1 (RW)
Sigint Grp: 0, Sighup pid: 0
-parenb -parodd -parstk -cstopb -inpck -hupcl +cread -clocal +isig +icanon
+iexten +echo +echoe +echok -echonl -noflsh -ignbrk +brkint -ignpar -parmrk
-istrip -inlcr -igncr +icrnl +opost
-isflow +osflow -ihflow -ohflow -lkhflow -lksflow
+lkiexten -wtsflow -nopgrp
-echoi -ispaged -ospaged -ihpaged -ohpaged
intr=^C quit=^- erase=^? kill=^U eof=^D eol=^- start=^Q stop=^S
susp=^- min=01 time=00 pr1=FF pr2=^- pr3=^- pr4=^- sf1=^-
sf2=^- sf3=^- sf4=^- left=A4 right=A6 up=A1 down=A9 ins=AB
del=AC rub=^- can=^- home=A0 end=A8
par=none bits=8 stopb=1 ispeed=300 ospeed=38400 rows=25,80
-numlock -capslock -scrlock font=0 protocol=0
-noboot -noswitch -nodebug -noresize -nohotkey
-invisible -nohscroll -nocolor -monocurs -scanmode -extmode

and a copy of my sysinit:

set -i
Dev -n 100 &
Dev.con -n 4 &
reopen file://0/dev/con1
ksh
#/idb_tool

The only things that I’ve noticed that are strange is the fact that the
line
from stty Sigint Grp: 0, Sighup pid: 0
has a Grp and Pid of 0, on the hard disk system it has the Pid of a
/bin/sh,
I assume this is because the HD system
uses login. The other strange thing is that the HD system has /dev/con1-X
AND /dev/console thee floppy system
only has /dev/con1-X NO /dev/console.

Could either of this two issues be causing this?

Why does vi return “Unrecognized TERM type”?

Thanks,

Scott

“Paul Russell” <> paul@jenosys.com> > wrote in message
news:94a8mm$2nd$> 1@inn.qnx.com> …
Use
stty
to check your console settings.
Ensure editting mode is enabled and an interrupt character is defined
+edit
intr=^C
Also check whether in your sysinit for the floppy you are starting
console
support as you do on the
harddisk:
Dev.ansi -Q -n10 & # Or Similar
reopen // 0/dev/con1 # no space after // just so email doesn’t
replace text with a link

-Paul
(For QNX4)

Scott Graunke sgraunke**nospam**@sterling1.com wrote in message
news:949tnh$pab$> 1@inn.qnx.com> …
Good Morning,

I have an application that I need to run from a bootable 3.5 floppy.
I’ve made the bootable floppy image to contain many usefull tools from
the
/bin dir (sin, ps, ksh,stty,termdef…) .
The problem that I’m having is that part of my application runs in an
ifinate loop and must be interrupted by a
Cntrl-C. My application is trapping SIGKILL, SIGTERM, and SIGINT and
exiting when these are recieved.

This all works fine on my development box but does not work from the
bootable floppy.

The Cntrl-C is simply ignored.
I have the TERM set to be qnx (I’ve tried qansi and ansi as well),
here’s my
ENV.

HOME=/
IFS=

KSH_VERSION=QNX 4.20
MAILCHECK=600
NODE=1
OPTIND=1
PATH=/bin:/etc:/usr/bin
PS1=#
PS2=
PWD=//1/
SECONDS=199
SHELL=/bin/sh
SHLEVEL=1
TERM=qnx
_=set

I have the following /usr/lib/terminfo data on the floppy.

drwxrwxr-x 7 0 0 1024 Jan 19 2001 .
drwxrwxrwx 3 0 0 1024 Jan 19 2001 …
drwxr-xr-x 2 0 0 1024 Apr 06 2000 a
drwxr-xr-x 2 0 0 2048 Apr 06 2000 q
drwxr-xr-x 2 0 0 1024 Apr 06 2000 t
-rw-rw-r-- 1 0 0 21581 Aug 26 1997 terminfo.src
drwxr-xr-x 2 0 0 1024 Apr 06 2000 v
drwxr-xr-x 2 0 0 1024 Apr 06 2000 x

drwxr-xr-x 2 0 0 2048 Apr 06 2000 .
drwxrwxr-x 7 0 0 1024 Jan 19 2001 …
-rw-rw-r-- 1 0 0 2295 Mar 19 1999 qansi
-rw-rw-r-- 1 0 0 2092 Mar 19 1999 qansi-g
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-m
-rw-rw-r-- 1 0 0 2301 Mar 19 1999 qansi-t
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-w
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnx2
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx4
-rw-rw-r-- 1 0 0 1758 Mar 19 1999 qnxm
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnxs2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt
-rw-rw-r-- 1 0 0 1371 Mar 19 1999 qnxt2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt4
-rw-rw-r-- 1 0 0 1707 Mar 19 1999 qnxtmono
-rw-rw-r-- 1 0 0 1748 Mar 19 1999 qnxw
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt101
-rw-rw-r-- 1 0 0 1033 Mar 19 1999 qvt102
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt108




From the ksh I can see the ^C when I type it but it will not interrupt
a
process run from that shell, what am I missing?

Also if I attempt to run “vi” from the floppy I get, Unrecognized TERM
type.

Here’s some sin data:
Node CPU Machine Speed Memory Ticksize Display
Flags
1 586/587 PCI 18930 31367k/33157k 10.0ms VGA
Color -3P±---------8P

Heapp Heapf Heapl Heapn Hands Names Sessions Procs Timers Nodes Virtual
0 0 4384 0 64 100 64 100 125 1 29M/
41M

Boot from Flop at — – --:-- Locators:

SID PID PROGRAM PRI STATE BLK CODE DATA
– – Microkernel — ----- — 12976 0
0 1 sys/Proc32 30f READY — 122k 155k
0 2 sys/Slib32 10r RECV 0 53k 4096
0 4 /bin/Fsys 10r RECV 0 77k 806k
0 5 /bin/Fsys.floppy 10o RECV 0 20k 28k
0 7 file://1/bin/ksh 10o WAIT -1 47k 32k
0 8 idle 0r READY — 0 0
0 14 file://1/bin/Dev 24f RECV 0 32k 73k
0 17 file://1/bin/Dev.ansi 20r RECV 0 40k 69k
0 19 file://1/bin/ksh 10o WAIT -1 47k 36k
0 37 file://1/bin/sin 10o REPLY 1 45k 32k


Thanks,

Scott Graunke
Sterling Computer Systems
sgraunke@sterling1.com






\

… or on -t /dev/con1 ksh

Richard

Jay Hogg wrote:

You are running with the initial process group from Proc and nothing
has been setup as far as controlling terminals.

Look at setsid(), setprgp(), and specifically tcsetpgrp() to get
setup as a session with a controlling terminal.

Jay

Scott Graunke wrote in message <94ahbs$7g8$> 1@inn.qnx.com> >…
Paul,

The stty looks okay and the sysinit starts the same support as the hard
disk
system.

Here’s the output from stty:

Name: file://1/dev/con1
Type: console
Opens: 1 (RW)
Sigint Grp: 0, Sighup pid: 0
-parenb -parodd -parstk -cstopb -inpck -hupcl +cread -clocal +isig +icanon
+iexten +echo +echoe +echok -echonl -noflsh -ignbrk +brkint -ignpar -parmrk
-istrip -inlcr -igncr +icrnl +opost
-isflow +osflow -ihflow -ohflow -lkhflow -lksflow
+lkiexten -wtsflow -nopgrp
-echoi -ispaged -ospaged -ihpaged -ohpaged
intr=^C quit=^- erase=^? kill=^U eof=^D eol=^- start=^Q stop=^S
susp=^- min=01 time=00 pr1=FF pr2=^- pr3=^- pr4=^- sf1=^-
sf2=^- sf3=^- sf4=^- left=A4 right=A6 up=A1 down=A9 ins=AB
del=AC rub=^- can=^- home=A0 end=A8
par=none bits=8 stopb=1 ispeed=300 ospeed=38400 rows=25,80
-numlock -capslock -scrlock font=0 protocol=0
-noboot -noswitch -nodebug -noresize -nohotkey
-invisible -nohscroll -nocolor -monocurs -scanmode -extmode

and a copy of my sysinit:

set -i
Dev -n 100 &
Dev.con -n 4 &
reopen file://0/dev/con1
ksh
#/idb_tool

The only things that I’ve noticed that are strange is the fact that the
line
from stty Sigint Grp: 0, Sighup pid: 0
has a Grp and Pid of 0, on the hard disk system it has the Pid of a
/bin/sh,
I assume this is because the HD system
uses login. The other strange thing is that the HD system has /dev/con1-X
AND /dev/console thee floppy system
only has /dev/con1-X NO /dev/console.

Could either of this two issues be causing this?

Why does vi return “Unrecognized TERM type”?

Thanks,

Scott

“Paul Russell” <> paul@jenosys.com> > wrote in message
news:94a8mm$2nd$> 1@inn.qnx.com> …
Use
stty
to check your console settings.
Ensure editting mode is enabled and an interrupt character is defined
+edit
intr=^C
Also check whether in your sysinit for the floppy you are starting
console
support as you do on the
harddisk:
Dev.ansi -Q -n10 & # Or Similar
reopen // 0/dev/con1 # no space after // just so email doesn’t
replace text with a link

-Paul
(For QNX4)

Scott Graunke sgraunke**nospam**@sterling1.com wrote in message
news:949tnh$pab$> 1@inn.qnx.com> …
Good Morning,

I have an application that I need to run from a bootable 3.5 floppy.
I’ve made the bootable floppy image to contain many usefull tools from
the
/bin dir (sin, ps, ksh,stty,termdef…) .
The problem that I’m having is that part of my application runs in an
ifinate loop and must be interrupted by a
Cntrl-C. My application is trapping SIGKILL, SIGTERM, and SIGINT and
exiting when these are recieved.

This all works fine on my development box but does not work from the
bootable floppy.

The Cntrl-C is simply ignored.
I have the TERM set to be qnx (I’ve tried qansi and ansi as well),
here’s my
ENV.

HOME=/
IFS=

KSH_VERSION=QNX 4.20
MAILCHECK=600
NODE=1
OPTIND=1
PATH=/bin:/etc:/usr/bin
PS1=#
PS2=
PWD=//1/
SECONDS=199
SHELL=/bin/sh
SHLEVEL=1
TERM=qnx
_=set

I have the following /usr/lib/terminfo data on the floppy.

drwxrwxr-x 7 0 0 1024 Jan 19 2001 .
drwxrwxrwx 3 0 0 1024 Jan 19 2001 …
drwxr-xr-x 2 0 0 1024 Apr 06 2000 a
drwxr-xr-x 2 0 0 2048 Apr 06 2000 q
drwxr-xr-x 2 0 0 1024 Apr 06 2000 t
-rw-rw-r-- 1 0 0 21581 Aug 26 1997 terminfo.src
drwxr-xr-x 2 0 0 1024 Apr 06 2000 v
drwxr-xr-x 2 0 0 1024 Apr 06 2000 x

drwxr-xr-x 2 0 0 2048 Apr 06 2000 .
drwxrwxr-x 7 0 0 1024 Jan 19 2001 …
-rw-rw-r-- 1 0 0 2295 Mar 19 1999 qansi
-rw-rw-r-- 1 0 0 2092 Mar 19 1999 qansi-g
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-m
-rw-rw-r-- 1 0 0 2301 Mar 19 1999 qansi-t
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-w
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnx2
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx4
-rw-rw-r-- 1 0 0 1758 Mar 19 1999 qnxm
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnxs2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt
-rw-rw-r-- 1 0 0 1371 Mar 19 1999 qnxt2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt4
-rw-rw-r-- 1 0 0 1707 Mar 19 1999 qnxtmono
-rw-rw-r-- 1 0 0 1748 Mar 19 1999 qnxw
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt101
-rw-rw-r-- 1 0 0 1033 Mar 19 1999 qvt102
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt108




From the ksh I can see the ^C when I type it but it will not interrupt
a
process run from that shell, what am I missing?

Also if I attempt to run “vi” from the floppy I get, Unrecognized TERM
type.

Here’s some sin data:
Node CPU Machine Speed Memory Ticksize Display
Flags
1 586/587 PCI 18930 31367k/33157k 10.0ms VGA
Color -3P±---------8P

Heapp Heapf Heapl Heapn Hands Names Sessions Procs Timers Nodes Virtual
0 0 4384 0 64 100 64 100 125 1 29M/
41M

Boot from Flop at — – --:-- Locators:

SID PID PROGRAM PRI STATE BLK CODE DATA
– – Microkernel — ----- — 12976 0
0 1 sys/Proc32 30f READY — 122k 155k
0 2 sys/Slib32 10r RECV 0 53k 4096
0 4 /bin/Fsys 10r RECV 0 77k 806k
0 5 /bin/Fsys.floppy 10o RECV 0 20k 28k
0 7 file://1/bin/ksh 10o WAIT -1 47k 32k
0 8 idle 0r READY — 0 0
0 14 file://1/bin/Dev 24f RECV 0 32k 73k
0 17 file://1/bin/Dev.ansi 20r RECV 0 40k 69k
0 19 file://1/bin/ksh 10o WAIT -1 47k 36k
0 37 file://1/bin/sin 10o REPLY 1 45k 32k


Thanks,

Scott Graunke
Sterling Computer Systems
sgraunke@sterling1.com






\

“login -f username”
where username(root?) has no password, and the .profile starts the diagnostics

Scott Graunke sgraunke**nospam**@sterling1.com wrote in message news:94an2n$amf$1@inn.qnx.com

Figured out the vi issue, the floppy was missing /etc/termcap, Whoops!

As for Dev32.ansi, on QNX 4.25 Dev.con links to Dev.ansi which links to
Dev32.ansi,
anyways I have the right one.

Changing the sysinit to use tinit -T /dev/con* & and using login to start
the shell fixes the
^C problem. This is not what’s required though, I do not want to login, I
just want the floppy to
boot and start a diagnostic program.

When using login the stty showed Sigint Grp: 20, Sighup pid: 20, where 20 is
the pid of “-sh”.

How can this be accomplished without users, groups, logings, passwords?

Thanks,

Scott

“Paul Russell” <> paul@jenosys.com> > wrote in message
news:94ajfo$8on$> 1@inn.qnx.com> …

For vi look for “TERM=” in the output of set. I believe this is set by
termdef or login, depending on how you connect.

I use Dev32.ansi, but if Dev.con works on the HD you should be OK.

Also - you’re not using login!!! Just starting a Shell directly…
Maybe you should try “login -f username” instead.

-Paul

Scott Graunke sgraunke**nospam**@sterling1.com wrote in message
news:94ahbs$7g8$> 1@inn.qnx.com> …
Paul,

The stty looks okay and the sysinit starts the same support as the hard
disk
system.

Here’s the output from stty:

Name: file://1/dev/con1
Type: console
Opens: 1 (RW)
Sigint Grp: 0, Sighup pid: 0
-parenb -parodd -parstk -cstopb -inpck -hupcl +cread -clocal +isig
+icanon
+iexten +echo +echoe +echok -echonl -noflsh -ignbrk
+brkint -ignpar -parmrk
-istrip -inlcr -igncr +icrnl +opost
-isflow +osflow -ihflow -ohflow -lkhflow -lksflow
+lkiexten -wtsflow -nopgrp
-echoi -ispaged -ospaged -ihpaged -ohpaged
intr=^C quit=^- erase=^? kill=^U eof=^D eol=^- start=^Q stop=^S
susp=^- min=01 time=00 pr1=FF pr2=^- pr3=^- pr4=^- sf1=^-
sf2=^- sf3=^- sf4=^- left=A4 right=A6 up=A1 down=A9 ins=AB
del=AC rub=^- can=^- home=A0 end=A8
par=none bits=8 stopb=1 ispeed=300 ospeed=38400 rows=25,80
-numlock -capslock -scrlock font=0 protocol=0
-noboot -noswitch -nodebug -noresize -nohotkey
-invisible -nohscroll -nocolor -monocurs -scanmode -extmode

and a copy of my sysinit:

set -i
Dev -n 100 &
Dev.con -n 4 &
reopen file://0/dev/con1
ksh
#/idb_tool

The only things that I’ve noticed that are strange is the fact that the
line
from stty Sigint Grp: 0, Sighup pid: 0
has a Grp and Pid of 0, on the hard disk system it has the Pid of a
/bin/sh,
I assume this is because the HD system
uses login. The other strange thing is that the HD system has
/dev/con1-X
AND /dev/console thee floppy system
only has /dev/con1-X NO /dev/console.

Could either of this two issues be causing this?

Why does vi return “Unrecognized TERM type”?

Thanks,

Scott

“Paul Russell” <> paul@jenosys.com> > wrote in message
news:94a8mm$2nd$> 1@inn.qnx.com> …
Use
stty
to check your console settings.
Ensure editting mode is enabled and an interrupt character is defined
+edit
intr=^C
Also check whether in your sysinit for the floppy you are starting
console
support as you do on the
harddisk:
Dev.ansi -Q -n10 & # Or Similar
reopen // 0/dev/con1 # no space after // just so email doesn’t
replace text with a link

-Paul
(For QNX4)

Scott Graunke sgraunke**nospam**@sterling1.com wrote in message
news:949tnh$pab$> 1@inn.qnx.com> …
Good Morning,

I have an application that I need to run from a bootable 3.5 floppy.
I’ve made the bootable floppy image to contain many usefull tools
from
the
/bin dir (sin, ps, ksh,stty,termdef…) .
The problem that I’m having is that part of my application runs in
an
ifinate loop and must be interrupted by a
Cntrl-C. My application is trapping SIGKILL, SIGTERM, and SIGINT
and
exiting when these are recieved.

This all works fine on my development box but does not work from the
bootable floppy.

The Cntrl-C is simply ignored.
I have the TERM set to be qnx (I’ve tried qansi and ansi as well),
here’s my
ENV.

HOME=/
IFS=

KSH_VERSION=QNX 4.20
MAILCHECK=600
NODE=1
OPTIND=1
PATH=/bin:/etc:/usr/bin
PS1=#
PS2=
PWD=//1/
SECONDS=199
SHELL=/bin/sh
SHLEVEL=1
TERM=qnx
_=set

I have the following /usr/lib/terminfo data on the floppy.

drwxrwxr-x 7 0 0 1024 Jan 19 2001 .
drwxrwxrwx 3 0 0 1024 Jan 19 2001 …
drwxr-xr-x 2 0 0 1024 Apr 06 2000 a
drwxr-xr-x 2 0 0 2048 Apr 06 2000 q
drwxr-xr-x 2 0 0 1024 Apr 06 2000 t
-rw-rw-r-- 1 0 0 21581 Aug 26 1997
terminfo.src
drwxr-xr-x 2 0 0 1024 Apr 06 2000 v
drwxr-xr-x 2 0 0 1024 Apr 06 2000 x

drwxr-xr-x 2 0 0 2048 Apr 06 2000 .
drwxrwxr-x 7 0 0 1024 Jan 19 2001 …
-rw-rw-r-- 1 0 0 2295 Mar 19 1999 qansi
-rw-rw-r-- 1 0 0 2092 Mar 19 1999 qansi-g
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-m
-rw-rw-r-- 1 0 0 2301 Mar 19 1999 qansi-t
-rw-rw-r-- 1 0 0 2357 Mar 19 1999 qansi-w
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnx2
-rw-rw-r-- 1 0 0 1491 Mar 19 1999 qnx4
-rw-rw-r-- 1 0 0 1758 Mar 19 1999 qnxm
-rw-rw-r-- 1 0 0 1460 Mar 19 1999 qnxs2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt
-rw-rw-r-- 1 0 0 1371 Mar 19 1999 qnxt2
-rw-rw-r-- 1 0 0 1686 Mar 19 1999 qnxt4
-rw-rw-r-- 1 0 0 1707 Mar 19 1999 qnxtmono
-rw-rw-r-- 1 0 0 1748 Mar 19 1999 qnxw
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt101
-rw-rw-r-- 1 0 0 1033 Mar 19 1999 qvt102
-rw-rw-r-- 1 0 0 1048 Mar 19 1999 qvt108




From the ksh I can see the ^C when I type it but it will not
interrupt a
process run from that shell, what am I missing?

Also if I attempt to run “vi” from the floppy I get, Unrecognized
TERM
type.

Here’s some sin data:
Node CPU Machine Speed Memory Ticksize Display
Flags
1 586/587 PCI 18930 31367k/33157k 10.0ms VGA
Color -3P±---------8P

Heapp Heapf Heapl Heapn Hands Names Sessions Procs Timers Nodes
Virtual
0 0 4384 0 64 100 64 100 125 1
29M/
41M

Boot from Flop at — – --:-- Locators:

SID PID PROGRAM PRI STATE BLK CODE DATA
– – Microkernel — ----- — 12976 0
0 1 sys/Proc32 30f READY — 122k 155k
0 2 sys/Slib32 10r RECV 0 53k 4096
0 4 /bin/Fsys 10r RECV 0 77k 806k
0 5 /bin/Fsys.floppy 10o RECV 0 20k 28k
0 7 file://1/bin/ksh 10o WAIT -1 47k 32k
0 8 idle 0r READY — 0 0
0 14 file://1/bin/Dev 24f RECV 0 32k 73k
0 17 file://1/bin/Dev.ansi 20r RECV 0 40k 69k
0 19 file://1/bin/ksh 10o WAIT -1 47k 36k
0 37 file://1/bin/sin 10o REPLY 1 45k 32k


Thanks,

Scott Graunke
Sterling Computer Systems
sgraunke@sterling1.com










\