Missing Applications

I’ve been wondering about two applications that I can’t
find in RTP. VEDIT and CHKFSYS. I presume there must be
a way to check the integrity of disks, and I’ve been told
that VEDIT was ported. Anyone know any more?


Mitchell Schoenbrun --------- maschoen@pobox.com

In my RTP installation, there is /sbin/chkfsys. Don’t know about vedit.
Markus

“Mitchell Schoenbrun” <maschoen@pobox.com> wrote in message
news:Voyager.010501143034.234G@schoenbrun.com

I’ve been wondering about two applications that I can’t
find in RTP. VEDIT and CHKFSYS. I presume there must be
a way to check the integrity of disks, and I’ve been told
that VEDIT was ported. Anyone know any more?


Mitchell Schoenbrun --------- > maschoen@pobox.com

/sbin/chkfsys - what I havn’t been able to figure out is how
to run it on startup. In qnx4 it was easy to stick it in sysinit.X
before any files were open. I still haven’t groked where that spot is
in RTP.

Previously, Markus Loffler wrote in qdn.public.qnxrtp.applications:

In my RTP installation, there is /sbin/chkfsys. Don’t know about vedit.
Markus

“Mitchell Schoenbrun” <> maschoen@pobox.com> > wrote in message
news:> Voyager.010501143034.234G@schoenbrun.com> …
I’ve been wondering about two applications that I can’t
find in RTP. VEDIT and CHKFSYS. I presume there must be
a way to check the integrity of disks, and I’ve been told
that VEDIT was ported. Anyone know any more?


Mitchell Schoenbrun --------- > maschoen@pobox.com



\


David L. Hawley D.L. Hawley and Associates

/etc/rc.d/rc.sysinit acts as the sysinit file in RTP. You can either modify
that file(uncomment the chkfsys line) OR create a rc.local in /etc/rc.d, add
in watever you want to start during startup & chmod rc.local to
executable.(Highly recommended as you doesn’t spill the rc.sysinit file)
Be warned… unlike boot image, there is NO alternate sysinit file… if you
can’t boot up after the changes due to any mistake, you’ll havta get another
hd to access the sysinit file & revert it back to the original. (My machine
hanged when I added cron into the sysinit file )

David Hawley <David.L.Hawley@computer.org> wrote in message
news:Voyager.010502135323.29098036A@shadow.hawley.com

/sbin/chkfsys - what I havn’t been able to figure out is how
to run it on startup. In qnx4 it was easy to stick it in sysinit.X
before any files were open. I still haven’t groked where that spot is
in RTP.

Previously, Markus Loffler wrote in qdn.public.qnxrtp.applications:
In my RTP installation, there is /sbin/chkfsys. Don’t know about vedit.
Markus

“Mitchell Schoenbrun” <> maschoen@pobox.com> > wrote in message
news:> Voyager.010501143034.234G@schoenbrun.com> …
I’ve been wondering about two applications that I can’t
find in RTP. VEDIT and CHKFSYS. I presume there must be
a way to check the integrity of disks, and I’ve been told
that VEDIT was ported. Anyone know any more?


Mitchell Schoenbrun --------- > maschoen@pobox.com






\

David L. Hawley D.L. Hawley and Associates

Thanks,

I’ve put chkfsys in rc.local and although it runs, I find that I
get an error (unmatched if) in rc.sysinit. This is a bit hard to
explain - but rc.local is “dotted” . /etc/rc.d/rc.local inside
an if/else in rc.sysinit. Anyone have ideas on what’s going on
here?

Previously, WeN wrote in qdn.public.qnxrtp.applications:

/etc/rc.d/rc.sysinit acts as the sysinit file in RTP. You can
either modify that file(uncomment the chkfsys line) OR create
a rc.local in /etc/rc.d, add in watever you want to start during
startup & chmod rc.local to executable.(Highly recommended as
you doesn’t spill the rc.sysinit file)
Be warned… unlike boot image, there is NO alternate sysinit file…
if you can’t boot up after the changes due to any mistake, you’ll
havta get another hd to access the sysinit file & revert it back
to the original. (My machine hanged when I added cron into the
sysinit file )

David Hawley <> David.L.Hawley@computer.org> > wrote in message
news:> Voyager.010502135323.29098036A@shadow.hawley.com> …
/sbin/chkfsys - what I havn’t been able to figure out is how
to run it on startup. In qnx4 it was easy to stick it in sysinit.X
before any files were open. I still haven’t groked where that spot
is in RTP.

David L. Hawley D.L. Hawley and Associates

The dot (.) means “sh”, e.g. start a new shell.
There shouldn’t be any problems with the if.
I just see

echo “Checking file systems…”

chkfsys /

somewhere in sysinit. Maybe just uncomment this.
Markus


“David Hawley” <David.L.Hawley@computer.org> wrote in message
news:Voyager.010504093445.700434A@shadow.hawley.com

Thanks,

I’ve put chkfsys in rc.local and although it runs, I find that I
get an error (unmatched if) in rc.sysinit. This is a bit hard to
explain - but rc.local is “dotted” . /etc/rc.d/rc.local inside
an if/else in rc.sysinit. Anyone have ideas on what’s going on
here?

Previously, WeN wrote in qdn.public.qnxrtp.applications:
/etc/rc.d/rc.sysinit acts as the sysinit file in RTP. You can
either modify that file(uncomment the chkfsys line) OR create
a rc.local in /etc/rc.d, add in watever you want to start during
startup & chmod rc.local to executable.(Highly recommended as
you doesn’t spill the rc.sysinit file)
Be warned… unlike boot image, there is NO alternate sysinit file…
if you can’t boot up after the changes due to any mistake, you’ll
havta get another hd to access the sysinit file & revert it back
to the original. (My machine hanged when I added cron into the
sysinit file )

David Hawley <> David.L.Hawley@computer.org> > wrote in message
news:> Voyager.010502135323.29098036A@shadow.hawley.com> …
/sbin/chkfsys - what I havn’t been able to figure out is how
to run it on startup. In qnx4 it was easy to stick it in sysinit.X
before any files were open. I still haven’t groked where that spot
is in RTP.

David L. Hawley D.L. Hawley and Associates

Previously, Markus Loffler wrote in qdn.public.qnxrtp.applications:

The dot (.) means “sh”, e.g. start a new shell.
There shouldn’t be any problems with the if.
I just see

echo “Checking file systems…”

chkfsys /

somewhere in sysinit. Maybe just uncomment this.

Actually the dot means include into the current shell. This allows
one to pass back env’s and so on.

I didn’t want to spill rc.sysinit, so didn’t uncomment.

Markus


“David Hawley” <> David.L.Hawley@computer.org> > wrote in message
news:> Voyager.010504093445.700434A@shadow.hawley.com> …
Thanks,

I’ve put chkfsys in rc.local and although it runs, I find that I
get an error (unmatched if) in rc.sysinit. This is a bit hard to
explain - but rc.local is “dotted” . /etc/rc.d/rc.local inside
an if/else in rc.sysinit. Anyone have ideas on what’s going on
here?

Previously, WeN wrote in qdn.public.qnxrtp.applications:
/etc/rc.d/rc.sysinit acts as the sysinit file in RTP. You can
either modify that file(uncomment the chkfsys line) OR create
a rc.local in /etc/rc.d, add in watever you want to start during
startup & chmod rc.local to executable.(Highly recommended as
you doesn’t spill the rc.sysinit file)
Be warned… unlike boot image, there is NO alternate sysinit file…
if you can’t boot up after the changes due to any mistake, you’ll
havta get another hd to access the sysinit file & revert it back
to the original. (My machine hanged when I added cron into the
sysinit file )

David Hawley <> David.L.Hawley@computer.org> > wrote in message
news:> Voyager.010502135323.29098036A@shadow.hawley.com> …
/sbin/chkfsys - what I havn’t been able to figure out is how
to run it on startup. In qnx4 it was easy to stick it in sysinit.X
before any files were open. I still haven’t groked where that spot
is in RTP.


David L. Hawley D.L. Hawley and Associates

I don’t really get your prob … wat’s the exact error msg?
Wat do you mean by rc.local is ‘dotted’ ?
David Hawley <David.L.Hawley@computer.org> wrote in message
news:Voyager.010504160326.700434A@shadow.hawley.com

Previously, Markus Loffler wrote in qdn.public.qnxrtp.applications:
The dot (.) means “sh”, e.g. start a new shell.
There shouldn’t be any problems with the if.
I just see

echo “Checking file systems…”

chkfsys /

somewhere in sysinit. Maybe just uncomment this.

Actually the dot means include into the current shell. This allows
one to pass back env’s and so on.

I didn’t want to spill rc.sysinit, so didn’t uncomment.

Markus


“David Hawley” <> David.L.Hawley@computer.org> > wrote in message
news:> Voyager.010504093445.700434A@shadow.hawley.com> …
Thanks,

I’ve put chkfsys in rc.local and although it runs, I find that I
get an error (unmatched if) in rc.sysinit. This is a bit hard to
explain - but rc.local is “dotted” . /etc/rc.d/rc.local inside
an if/else in rc.sysinit. Anyone have ideas on what’s going on
here?

Previously, WeN wrote in qdn.public.qnxrtp.applications:
/etc/rc.d/rc.sysinit acts as the sysinit file in RTP. You can
either modify that file(uncomment the chkfsys line) OR create
a rc.local in /etc/rc.d, add in watever you want to start during
startup & chmod rc.local to executable.(Highly recommended as
you doesn’t spill the rc.sysinit file)
Be warned… unlike boot image, there is NO alternate sysinit file…
if you can’t boot up after the changes due to any mistake, you’ll
havta get another hd to access the sysinit file & revert it back
to the original. (My machine hanged when I added cron into the
sysinit file )

David Hawley <> David.L.Hawley@computer.org> > wrote in message
news:> Voyager.010502135323.29098036A@shadow.hawley.com> …
/sbin/chkfsys - what I havn’t been able to figure out is how
to run it on startup. In qnx4 it was easy to stick it in sysinit.X
before any files were open. I still haven’t groked where that spot
is in RTP.


David L. Hawley D.L. Hawley and Associates

OK, starting from the beginning I wanted to run chkfsys /
on startup. It was suggested that I put it into
/etc/rc.d/rc.local. So that I wouldn’t have to modify
/etc/rc.d/rc.sysinit (It will spill and an error could
prevent proper booting). Actually since rc.local is
“dotted” into rc.sysinit, this latter argument should be
expanded to rc.local can prevent booting as well…

I’ve just tried a trivial rc.local containing the line:
chkfsys /
This does indeed run chkfsys, but after it runs I get an error
message:

/etc/rc.d/rc.sysinit [79]: syntax error: ‘if’ unmatched.
Unable to run rc.sysinit, starting a shell.

Now if you look at rc.sysinint:

65 if test ! -z “$etc_host” -a -x $etc_host/rc.d/rc.local; then
echo “Starting extra run commands for $(hostname)”
. $etc_host/rc.d/rc.local
68 elif test -x /etc/rc.d/rc.local; then
echo “Starting extra run commands”
. /etc/rc.d/rc.local
fi

Change the path to back before starting init

P=-p
if test ! -z “$SAFEMODE”; then
unset P
fi

79 if test -f /etc/system/config/nophoton; then
unset P
fi

In lines 65/68 we see the test for rc.local and that it is
run (dotted) in the following line.

It’s unclear to me why I get the syntax error on line 79 if
rc.local has a line:

chkfsys /
or
chkfsys ‘/’

in it. I guess I’ll try just uncommenting the chkfsys in
rc.sysinit…



Previously, WeN wrote in qdn.public.qnxrtp.applications:

I don’t really get your prob … wat’s the exact error msg?
Wat do you mean by rc.local is ‘dotted’ ?


David L. Hawley D.L. Hawley and Associates

there was a problem which has since been fixed in how chkfsys works with
the rc.local

in the meantime, launch the chkfsys on a different console.
i use:

on -t /dev/con2 chkfsys /

David Hawley <David.L.Hawley@computer.org> wrote:

OK, starting from the beginning I wanted to run chkfsys /
on startup. It was suggested that I put it into
/etc/rc.d/rc.local. So that I wouldn’t have to modify
/etc/rc.d/rc.sysinit (It will spill and an error could
prevent proper booting). Actually since rc.local is
“dotted” into rc.sysinit, this latter argument should be
expanded to rc.local can prevent booting as well…

I’ve just tried a trivial rc.local containing the line:
chkfsys /
This does indeed run chkfsys, but after it runs I get an error
message:

/etc/rc.d/rc.sysinit [79]: syntax error: ‘if’ unmatched.
Unable to run rc.sysinit, starting a shell.

Now if you look at rc.sysinint:

65 if test ! -z “$etc_host” -a -x $etc_host/rc.d/rc.local; then
echo “Starting extra run commands for $(hostname)”
. $etc_host/rc.d/rc.local
68 elif test -x /etc/rc.d/rc.local; then
echo “Starting extra run commands”
. /etc/rc.d/rc.local
fi

Change the path to back before starting init

P=-p
if test ! -z “$SAFEMODE”; then
unset P
fi

79 if test -f /etc/system/config/nophoton; then
unset P
fi

In lines 65/68 we see the test for rc.local and that it is
run (dotted) in the following line.

It’s unclear to me why I get the syntax error on line 79 if
rc.local has a line:

chkfsys /
or
chkfsys ‘/’

in it. I guess I’ll try just uncommenting the chkfsys in
rc.sysinit…



Previously, WeN wrote in qdn.public.qnxrtp.applications:
I don’t really get your prob … wat’s the exact error msg?
Wat do you mean by rc.local is ‘dotted’ ?


David L. Hawley D.L. Hawley and Associates


Randy Martin randy@qnx.com
Manager of FAE Group, North America
QNX Software Systems www.qnx.com
175 Terence Matthews Crescent, Kanata, Ontario, Canada K2M 1W8
Tel: 613-591-0931 Fax: 613-591-3579

Thank Randy - I didn’t think of that, but it’s obvious now
that it’s in front of me.

Previously, Randy Martin wrote in qdn.public.qnxrtp.applications:

there was a problem which has since been fixed in how chkfsys works with
the rc.local

in the meantime, launch the chkfsys on a different console.
i use:

on -t /dev/con2 chkfsys /

David Hawley <> David.L.Hawley@computer.org> > wrote:
OK, starting from the beginning I wanted to run chkfsys /
on startup. It was suggested that I put it into
/etc/rc.d/rc.local. So that I wouldn’t have to modify
/etc/rc.d/rc.sysinit (It will spill and an error could
prevent proper booting). Actually since rc.local is
“dotted” into rc.sysinit, this latter argument should be
expanded to rc.local can prevent booting as well…

I’ve just tried a trivial rc.local containing the line:
chkfsys /
This does indeed run chkfsys, but after it runs I get an error
message:

/etc/rc.d/rc.sysinit [79]: syntax error: ‘if’ unmatched.
Unable to run rc.sysinit, starting a shell.

Randy Martin > randy@qnx.com
Manager of FAE Group, North America
QNX Software Systems > www.qnx.com
175 Terence Matthews Crescent, Kanata, Ontario, Canada K2M 1W8
Tel: 613-591-0931 Fax: 613-591-3579


David L. Hawley D.L. Hawley and Associates

“Randy Martin” <randy@qnx.com> wrote in message
news:9d9p94$dp7$2@nntp.qnx.com

there was a problem which has since been fixed in how chkfsys works with
the rc.local

I don’t understand how chkfsys can cause this problem. I would
like to understand the nature of this problem. I’m currenlty
chassing some other problem that may be related to this.

  • Mario

Previously, Randy Martin wrote in qdn.public.qnxrtp.applications:

there was a problem which has since been fixed in how chkfsys works with
the rc.local

in the meantime, launch the chkfsys on a different console.
i use:

on -t /dev/con2 chkfsys /

Randy,

After trying this - I think that it’s a terrible idea. The problem
is that chkfsys needs to run on a file static system and the on
command allows the rest of rc.local and rc.sysinit to proceed
which seems to mess up things. I’d guess that doing a chkfsys -P
could really cause problems.

Dave

\

David L. Hawley D.L. Hawley and Associates