Skip navigation.
Home
The QNX Community Portal

View topic - Newbie question about process and files

Newbie question about process and files

Discussion about the QNX6 OS.

Newbie question about process and files

Postby qnx-newbie » Mon Mar 05, 2012 10:55 pm

Hi to all,
I am completly new to QNX and I have probably a stupid question but here it goes.
I have a device that runs qnx (v6.3.2 I think) and it boots from a flash.
I can telnet to device and I can run some basic commands.
It seems that this device runs procnto and then it loads a startup script located in /etc/.
I can execute "pidin a" and list running process with full path to executables but when I search for those executables in filesystem they are not there and I can not find them anywhere !!!!
Could be that that these executables are loaded from flash to RAM and flash is not mounted as part of filesystem !?
I just want to know why I can't have access to those executables.
Thanks for any help.
qnx-newbie
New Member
 
Posts: 2
Joined: Mon Mar 05, 2012 10:35 pm

Re: Newbie question about process and files

Postby maschoen » Mon Mar 05, 2012 11:10 pm

The boot file can contain executables. These would appear in a "pidin" search but would not be found on the file system. However you should be able to find them under /proc/boot.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: Newbie question about process and files

Postby qnx-newbie » Tue Mar 06, 2012 9:29 am

Maschoen, thank you for your reply...
Files could be under /proc/boot but they must have a different name because with original name I can't find them.
Still in pidin they are reported as /usr/project/<name of executable>
I will take a better look.
thanks.
qnx-newbie
New Member
 
Posts: 2
Joined: Mon Mar 05, 2012 10:35 pm

Re: Newbie question about process and files

Postby maschoen » Tue Mar 06, 2012 5:53 pm

One more thought on this. If a program starts another program using spawn, it gets to set the value of argv0 which I believe is the name that pidin will show. This can be deceptive, since argv0 doesn't have to be the same as the name of the program that is loaded.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: Newbie question about process and files

Postby mario » Wed Mar 07, 2012 1:27 pm

I think it's also possible for a program to be in /boot/proc and the get deleted after it started. Not that in the boot file it's possible to "map" a file in a directory, hence /usr/xxx/abc may appear to be in /usr/xxx but be stored in /boot/proc. Another possibillity is a system that copies files during the boot process and then remove them after the startup is completed. Lots of possibilities ;-)
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to QNX6 - OS

Who is online

Users browsing this forum: No registered users and 4 guests

cron