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
0+0 records in? A delay must be used? Should I use ioperm (2) before? 
Anything else? 
It is kernel 2.6.7-2 on a Debian system.
        
  I believe I can read, although I am still try to verify that the
output is what is expected:

    $ dd if=/dev/port bs=1 count=5 skip=672 | od -b
    dd: opening `/dev/port': Permission denied
    0000000
    $

    # dd if=/dev/port bs=1 count=5 skip=672 | od -b
    5+0 records in
    5+0 records out
    5 bytes transferred in 0.000461 seconds (10846 bytes/sec)
    0000000 377 377 377 000 000
    0000005
    #

-- 
"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]

Reply via email to