xboxscene.org forums

Author Topic: Send Commands To Dvd Drive In Linux  (Read 79 times)

GPW

  • Archived User
  • Newbie
  • *
  • Posts: 2
Send Commands To Dvd Drive In Linux
« on: November 26, 2006, 04:04:00 PM »

Hallo Guys,

is there a way to send commands to my dvd drive in Linux.
I have a SAMSUNG SH-D162C.
I have tried to use the Perl sysopen(DVD, "/dev/hdc",  O_RDWR | O_NDELAY | O_BINARY).
But when I send a command via print I doesn't get the expected result.

greeting,
GPW
Logged

GPW

  • Archived User
  • Newbie
  • *
  • Posts: 2
Send Commands To Dvd Drive In Linux
« Reply #1 on: November 27, 2006, 02:15:00 PM »

Hallo,

I have switched to C and using ths ioctl.h. So I wrote a little program, which do me all my needed jobs (e.g. set error skipping on).
Thanks to the guys from sg3-utils the usage of the library was easy to crasp.

greetings,
GPW

This post has been edited by GPW: Nov 27 2006, 10:19 PM
Logged