Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Cool posting about devc-ditto: (7 Items)
   
Cool posting about devc-ditto  
Hi all,

There's a new SRR article by guest author Xiaodan Tang on devc-ditto.  
Kudos to Xiaodan for making such a useful utility!

http://sendreceivereply.wordpress.com/2007/09/14/devc-ditto-the-principle-the-usage/

-- 
cburgess@qnx.com
Re: Cool posting about devc-ditto  
So here are some ideas I had that could still be done.

qtalk obviously has a few issues - maybe we would still do a 'ditto' util, that makes it more convenient.

For example...

ditto /dev/con1 could automatically open /dev/con1.ditto, if present

ditto handle the old ditto options...
$ use ditto
ditto [options]* [path-to-device]

Options:
 -c command_char  Enter command mode on this character (hex value).
          (Default is ^E)
 -f               Follow "active" console.
 -k               Enable local keyboard.
 -q               Quiet operation; don't notify target being watched.
 -n nid           Node to ditto
 -t ttyno         TTY to ditto

Following the 'active' console would be nice, but would be pretty hard.  However you could auto switch on 'input' maybe.


cheers,

Colin

--
cburgess@qnx.com
Re: Cool posting about devc-ditto  
Devc-ditto ... very close to old qnx4 ditto. Well done!

But now I am struggling with "ditto-ing" real console (/dev/con2) from telnet session.

I have compiled devc-ditto (on QNX6.4 alpha), started it, mounted ditto on /dev/con2.

Using qtalk from telnet session I can "interact" with /dev/con2 (through /dev/con2.ditto), but the output seems "messy" 
- seems like CR/LF problem. Output moves to next line, but doesn't move to its beginning.

Any ideas?

Thanks, PKY

RE: Cool posting about devc-ditto  
Once in qtalk (to /dev/con2.ditto), do a:

	stty raw </dev/con2

This should give you better output.

-xtang

> -----Original Message-----
> From: Pavol Kycina [mailto:community-noreply@qnx.com]
> Sent: August 28, 2008 5:04 AM
> To: ostech-core_os
> Subject: Re: Cool posting about devc-ditto
> 
> Devc-ditto ... very close to old qnx4 ditto. Well done!
> 
> But now I am struggling with "ditto-ing" real console (/dev/con2) from
telnet
> session.
> 
> I have compiled devc-ditto (on QNX6.4 alpha), started it, mounted
ditto on
> /dev/con2.
> 
> Using qtalk from telnet session I can "interact" with /dev/con2
(through
> /dev/con2.ditto), but the output seems "messy" - seems like CR/LF
problem.
> Output moves to next line, but doesn't move to its beginning.
> 
> Any ideas?
> 
> Thanks, PKY
> 
> 
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post12524
Re: RE: Cool posting about devc-ditto  
> Once in qtalk (to /dev/con2.ditto), do a:
> 
> 	stty raw </dev/con2
> 
> This should give you better output.
> 
> -xtang
> 

[snip]

The look in qtalk is exactly the same even with "stty raw </dev/con2".
After issuing this command the output on "original" /dev/con2 gets "spoiled" in the same way as in qtalk. After issuing 
"stty edit </dev/con2" output on real console gets repaired, nothing changes in qtalk.

Anything else to try?

Thanks, PKY

RE: RE: Cool posting about devc-ditto  
Did you type the command WITHIN the qtalk (not from some other terminal,
but inside qtalk) ? 

-xtang

> -----Original Message-----
> From: Pavol Kycina [mailto:community-noreply@qnx.com] 
> Sent: Wednesday, September 03, 2008 2:14 AM
> To: ostech-core_os
> Subject: Re: RE: Cool posting about devc-ditto
> 
> > Once in qtalk (to /dev/con2.ditto), do a:
> > 
> > 	stty raw </dev/con2
> > 
> > This should give you better output.
> > 
> > -xtang
> > 
> 
> [snip]
> 
> The look in qtalk is exactly the same even with "stty raw </dev/con2".
> After issuing this command the output on "original" /dev/con2 
> gets "spoiled" in the same way as in qtalk. After issuing 
> "stty edit </dev/con2" output on real console gets repaired, 
> nothing changes in qtalk.
> 
> Anything else to try?
> 
> Thanks, PKY
> 
> 
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post12723
> 
> 
Re: RE: RE: Cool posting about devc-ditto  
> Did you type the command WITHIN the qtalk (not from some other terminal,
> but inside qtalk) ? 
> 
> -xtang
> 

[snip]

Yes, I typed the command within the qtalk.

PKY