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.
Lev
--
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:
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_TRUNC
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., /dev/ttyS0 0).
no permission denied but output is still stdout
/dev/ttyS0 0
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.
/dev/ttyS0 0
no permission denied but output is not redirected to /dev/ttyS0, not
stdout
5 matches
Mail list logo