Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - What is it called????: (5 Items)
   
What is it called????  
I keep getting stuck trying to guess where the QNX equivalent of a particular Linux or Unix command or file is located.

So two questions:

1. where can I find a comprehensive "tourist's glossary" of common Linux tools that are called something else in QNX???

2. In particular, Under Unix I expect to find a system message log by simply typing "dmesg", or going to /var/log or /
etc/log and poking around. I'm stumped. 

The context is that I keep having ssh stop working. I try to connect with an ssh client. It works flawlessly. I leave 
for the weekend and come back to find that the client will no longer connect. 

I go to the QNX console and kill sshd and restart it and the client program (putty.exe, run from Windows XP) and it 
works fine.

I'd like to not have to ask a forum a dumb question like this, but I don't have time to devote half a day's effort at 
finding out where the devil something as basic as the system message log is located.

Thanks - Frank
RE: What is it called????  
See inline


I keep getting stuck trying to guess where the QNX equivalent of a
particular Linux or Unix command or file is located.

So two questions:

1. where can I find a comprehensive "tourist's glossary" of common Linux
tools that are called something else in QNX???
[Peter] In Momentics, open Help->Help Content. The Online help screen
provides a key word search field.

2. In particular, Under Unix I expect to find a system message log by simply
typing "dmesg", or going to /var/log or /etc/log and poking around. I'm
stumped. 
[Peter] sloginfo is your friend. This is the client application to read
system messages from 'slogger', the system logging daemon.
Writing to a file system is an option to the system logger because an RTOS
for embedded application can't always rely on a writable file system.

If you need a quick help related to a binary (like man xxxx), please use the
'use xxxx' tool.
e.g.#> use slogger 

The context is that I keep having ssh stop working. I try to connect with an
ssh client. It works flawlessly. I leave for the weekend and come back to
find that the client will no longer connect. 

I go to the QNX console and kill sshd and restart it and the client program
(putty.exe, run from Windows XP) and it works fine.
[Peter] Network time out?

I'd like to not have to ask a forum a dumb question like this, but I don't
have time to devote half a day's effort at finding out where the devil
something as basic as the system message log is located.

[Peter] as stated above, we have a help viewer. Entering the key word will
provide detailed information.
Cheers,
Peter


Thanks - Frank


_______________________________________________
QNX Momentics Getting Started
http://community.qnx.com/sf/go/post4614
Re: RE: What is it called????  
Thanks, Peter.

> 'use xxxx' tool.
> e.g.#> use slogger 

Yeah, I'm hip to "use".  The problem is that if I don't know what the function is called, I can't get help.

I'm accustomed to "man -k" as a starting point, but use doesn't seem to have that capability, as far as I've determined 
.

>> I go to the QNX console and kill sshd and restart it >> and the client program
>> (putty.exe, run from Windows XP) and it works fine.
> [Peter] Network time out?

I could understand the client server connection timing out. I assume if it was really important to keep a process 
running come hell or high water, I just nohup it so it can run as a terminal free daemon. That's fine. 

My problem is, however, I want to be able to reconnect to a remote system using an SSH client program, but since the ssh
 daemon seems to have just died, I can't reconnect to it without using the system console. I very likely will not have 
access to the system console, and so this problem ends up being a checkmate.

I looked at sloginfo and got this, which hopefully someone out there can understand. Sadly, I don't!

Jan 25 17:09:00    1     8     0 Unable to read TTF file.
Jan 25 17:16:20    1     8     0 blkcache fseek failed
Jan 25 17:16:20    1     8     0 Unable to read TTF file.
Jan 28 07:10:18    5    21     0 run fault pid 761899 tid 1 signal 10 code 3 ip 0x8069420 opt/sbin/sshd
Jan 28 07:11:13    5    21     0 run fault pid 782379 tid 1 signal 4 code 1 ip 0x8069420 opt/sbin/sshd
Jan 28 07:17:27    1     8     0 blkcache fseek failed
Jan 28 07:17:27    1     8     0 Unable to read TTF file.
Jan 28 07:17:28    1     8     0 blkcache fseek failed
Jan 28 07:17:28    1     8     0 Unable to read TTF file.
Jan 28 07:17:43    1     8     0 blkcache fseek failed
Jan 28 07:17:43    1     8     0 Unable to read TTF file.
Jan 28 07:28:06    5    21     0 run fault pid 1179694 tid 1 signal 4 code 1 ip 0x8069420 opt/sbin/sshd
Jan 28 08:31:41    2     8     0 Render cmd 0x45 failed

Note the boundary between the 25th and the 28th...  That was the weekend, at the end of which sshd has stopped working. 


Like I said, just killing smbd from a neutrino terminal and restarting it gets the process rolling again. But I wan't be
 able to do that in practice.

Thanks - Frank
Re: RE: What is it called????  
On Jan 28, 2008 8:55 AM, Frank Rudolph <rudolph@beaconpower.com> wrote:

> Thanks, Peter.
>
> > 'use xxxx' tool.
> > e.g.#> use slogger
>
> Yeah, I'm hip to "use".  The problem is that if I don't know what the
> function is called, I can't get help.
>
> I'm accustomed to "man -k" as a starting point, but use doesn't seem to
> have that capability, as far as I've determined .


man -k doesn't work if you don't have man pages installed on your *nix
system.  Most Neutrino targets don't
have the help documentation installed.  If you have a development system
(and thus the documentation in the
IDE) then you can use the search there.  If you have a self-hosted system
then you can use helpviewer to search
(photon application).

As a side note, while slogger/sloginfo provides system logging messages, it
is not quite the same as what you
get with dmesg ... because the systems are different.  If slogger isn't
running, then it won't capture messages.
Also most servers won't generate information without some level of verbosity
... and the kernel barely speaks
at all =;-)

Thomas
Re: What is it called????  
The Getting to Know the OS chapter of the Neutrino User's Guide lists a few Unix commands and their equivalents in 
Neutrino:

http://www.qnx.com/developers/docs/6.3.2/neutrino/user_guide/os_intro.html

It doesn't include dmesg, but I can add it and any other commands that people would find useful. There's a more 
extensive list of DOS commands and their equivalents:

http://www.qnx.com/developers/docs/6.3.2/neutrino/user_guide/cmdline.html#DOS_vs_Nto

You'll probably find the Neutrino User's Guide and the Utilities Reference useful. They both have a keyword index that 
includes concepts as well as specific command names. Again, if you have any suggestions for additions to the index, I'd 
be happy to hear them.

Steve Reid
Technical Editor
QNX Software Systems