Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to print to console: (4 Items)
   
How to print to console  
I cross-compile and build an Arm7 le QNX x86_64 executable ("QNX") on a Windows host and then scp it onto the pre-built 
Vmware virtual QNX target I downloaded from the Software Center - QNX_SDP-x86_64.

This works and I can see my executable is listed by typing pidin | grep QNX

I execute it remotely from the Windows host using ssh, eg: 
scp ./QNX root@192.168.50.51:/tmp
ssh 192.168.50.51 -l root /tmp/QNX

Currently the QNX executable just prints "Hello World" every 2 seconds to a console.

How can I ensure that the executable prints out to the terminal on the virtual QNX target in VMWare?
I have read about tinit but it doesn't seem to exist in my virtual machine.
Re: How to print to console  
I can redirect to a file but I want to know how to redirect to the console.

ssh -l root 192.168.50.51 "/tmp/QNX > /tmp/logtxt"

I've tried > /dev/ttyp0 but no output is seen.

Re: How to print to console  
Ah - I've just succeeded with 

> /dev/con1
Re: How to print to console  
This works only on x86 targets.

You can also try to redirect to /dev/console. This device is managed by slogger2, and all your output will appear in the
 system log. Can be useful to correlate your own messages with other stuff going on in the system.

Regards,
Albrecht