Yes it works !
Thanks to both of you for your help.
On 3/20/2006 11:48 PM, Lev Bishop wrote:
> I think the solution might be a combination of both of Igor's suggestions
> cmnd <> /dev/ttyS0 >&0
>
> Ie, open the port read/write on stdin and then dup it to stdout.
>
> Let me know if that works.
>
On 3/20/06, D.Pageau wrote:
> <>
>
> no permission denied but output is still stdout
This is expected, because <> operator says to open for read/write on
descriptor 0. It doesn't say anything about stdout.
> &0
>
> no permission denied but output is not redirected to /dev/ttyS0, not
> stdout eith
On 2006-03-20 20:02, Igor Peshansky wrote:
>> any work around ?
>
> Well, bash does offer an input/output redirection with the '<>'
> operator... Did you try that?
>
> Also, duplicating the file descriptor might work (e.g., &0).
<>
no permission denied but output is still stdout
&0
no permi
On Mon, 20 Mar 2006, D.Pageau wrote:
> I have to redirect both stdin & stdout to com1
>
> lrz -X -vv foo.bin > /dev/ttyS0 < /dev/ttyS0
> bash: /dev/ttyS0: Permission denied
>
> This is working on *nix but not with Cygwin. Why ?
According to the strace, bash opens the port twice, using O_CREAT|O_
I have to redirect both stdin & stdout to com1
lrz -X -vv foo.bin > /dev/ttyS0 < /dev/ttyS0
bash: /dev/ttyS0: Permission denied
This is working on *nix but not with Cygwin. Why ?
any work around ?
CYGWIN_NT-5.0 foo 1.5.20(0.155/4/2) 2006-03-19 16:11 i686 Cygwin
--
Unsubscribe info: http
5 matches
Mail list logo