On Sun, Aug 08, 2004 at 05:30:39PM +0300, [EMAIL PROTECTED] wrote: > Shaul Karl wrote: > > > Is the following expected? > > > > # printf "\xa2" | dd of=/dev/port bs=1 count=1 skip=675 > > 0+0 records in > > 0+0 records out > > 0 bytes transferred in 0.001999 seconds (0 bytes/sec) > > # printf "$?\n" > > 0 > > > >I run it as root. Why there were 0 bytes transferred and still it is > >a 0 return code? Is there any significance in the fact that there were > > > > > What does strace(1) say about this? >
strace was helpful. Should have issued: printf "\xa2" | dd of=/dev/port bs=1 count=1 seek=675 that is seek and not skip at the end. If someone is curious I can send the full output of strace. -- "If you have an apple and I have an apple and we exchange apples then you and I will still each have one apple. But if you have an idea and I have an idea and we exchange these ideas, then each of us will have two ideas." -- George Bernard Shaw (sent by shaulk @ 013 . net . il) ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]