Ez-Aton wrote:

dd is meant to be used with block devices, not with character devices. To hijack character devices, you can simply cat them to somewhere.

But dd has the relatively singular option (apart from perl, I guess) of letting its user
to control an lseek(2) call from command line, which is what Shaul exploited "as
designed" (in the answer to his own question he used "seek" which solved his problem).


Cheers,

--Amos


Ez.

[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




================================================================= 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