By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,626 Members | 1,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,626 IT Pros & Developers. It's quick & easy.

block devices

P: n/a
What's the best way to read a byte of data directly from a block device
(a scsi hard drive) on Linux using Python?
Oct 17 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
rick schrieb:
What's the best way to read a byte of data directly from a block device
(a scsi hard drive) on Linux using Python?
Reading it? Using read?

f = open("/dev/foo")
f.read(1)

Diez
Oct 17 '06 #2

P: n/a
Diez B. Roggisch wrote:
Reading it? Using read?

f = open("/dev/foo")
f.read(1)

Diez
Wow, I didn't realize it was that simple. Thanks!
Oct 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.