Reading the console from a telnet session

When a daemon writes text to stdout, it appears on the console (the
monitor). Is it possible to read this text from a telnet session? This
doesn’t work, but I’d like to be able to do something like ‘cat
/dev/console’.

Thanks,
Shaun

In QNX4 you can use the ‘prtsc’ utility or ‘ditto’ to read/see a console.
You can also use the console_read() et al C functions to read a console.

In QNX6/Nto/RTP/NC/SE/PE you can’t.

“Shaun Jackman” <sjackman@nospam.vortek.com> wrote in message
news:ahk7d5$pgv$1@inn.qnx.com

When a daemon writes text to stdout, it appears on the console (the
monitor). Is it possible to read this text from a telnet session? This
doesn’t work, but I’d like to be able to do something like ‘cat
/dev/console’.

Thanks,
Shaun

“Bill Caroselli (Q-TPS)” <QTPS@earthlink.net> wrote:

In QNX4 you can use the ‘prtsc’ utility or ‘ditto’ to read/see a console.
You can also use the console_read() et al C functions to read a console.

In QNX6/Nto/RTP/NC/SE/PE you can’t.

http://www.qnxzone.com/readme.php?news_id=148

Brian Stecher <bstecher@qnx.com> wrote:

“Bill Caroselli (Q-TPS)” <> QTPS@earthlink.net> > wrote:
In QNX4 you can use the ‘prtsc’ utility or ‘ditto’ to read/see a console.
You can also use the console_read() et al C functions to read a console.

In QNX6/Nto/RTP/NC/SE/PE you can’t.

http://www.qnxzone.com/readme.php?news_id=148

Sorry, that’s:

http://www.qnxzone.com/readmore.php?news_id=148

Cool! I didn’t know that was there.

It should be part of the RTP distribution.

“Brian Stecher” <bstecher@qnx.com> wrote in message
news:ahkev2$pjf$2@nntp.qnx.com

Brian Stecher <> bstecher@qnx.com> > wrote:
“Bill Caroselli (Q-TPS)” <> QTPS@earthlink.net> > wrote:
In QNX4 you can use the ‘prtsc’ utility or ‘ditto’ to read/see a
console.
You can also use the console_read() et al C functions to read a
console.

In QNX6/Nto/RTP/NC/SE/PE you can’t.

http://www.qnxzone.com/readme.php?news_id=148

Sorry, that’s:

http://www.qnxzone.com/readmore.php?news_id=148

An alternative is to run the daemon on a psuedo tty and monitor the
output. This is tricky, but I know it is documented somewhere.


Previously, Shaun Jackman wrote in comp.os.qnx:

When a daemon writes text to stdout, it appears on the console (the
monitor). Is it possible to read this text from a telnet session? This
doesn’t work, but I’d like to be able to do something like ‘cat
/dev/console’.

Thanks,
Shaun

\


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

“Bill Caroselli (Q-TPS)” <QTPS@earthlink.net> wrote:

“Brian Stecher” <> bstecher@qnx.com> > wrote in message
news:ahkev2$pjf$> 2@nntp.qnx.com> …
Brian Stecher <> bstecher@qnx.com> > wrote:
“Bill Caroselli (Q-TPS)” <> QTPS@earthlink.net> > wrote:
In QNX4 you can use the ‘prtsc’ utility or ‘ditto’ to read/see a
console.
You can also use the console_read() et al C functions to read a
console.

In QNX6/Nto/RTP/NC/SE/PE you can’t.

http://www.qnxzone.com/readmore.php?news_id=148

Cool! I didn’t know that was there.

It should be part of the RTP distribution.

It was cooked up in about 2 days on xtang’s own time (just after the
“I want ditto” postings on qdn). Notice that it’s just a straight
resource manager with no special knowledge and no mods to any devc-*
devices required.

As he says in the posting, once it gets enhanced a bit more maybe
it’ll get put in a future release.

Hi, all

On the web site http://www.qnxzone.com/readmore.php?news_id=113 is a link
to download devc-clone from the xtang’s repository from
http://www.qnxzone.com/~xtang/repository. Unfortunately I am behind the
proxy and I can not use pkg-installer for downloading. Can somebody helps me
please? Thank’s a lot.

Brano


“Brian Stecher” <bstecher@qnx.com> wrote in message
news:ahkev2$pjf$2@nntp.qnx.com

Brian Stecher <> bstecher@qnx.com> > wrote:
“Bill Caroselli (Q-TPS)” <> QTPS@earthlink.net> > wrote:
In QNX4 you can use the ‘prtsc’ utility or ‘ditto’ to read/see a
console.
You can also use the console_read() et al C functions to read a
console.

In QNX6/Nto/RTP/NC/SE/PE you can’t.

http://www.qnxzone.com/readme.php?news_id=148

Sorry, that’s:

http://www.qnxzone.com/readmore.php?news_id=148