01-12-2004
cd inserted event
i am programming in c and i need to start a procedure automatically when a cd is inserted. Anyone knows how can i do it?
thanx
4 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am working on a script that inserts one row of data at the time to a table.
Among the fields of that table is the “serial” which is the auto increment. I need to be able to retrieve last inserted row id to use it for another insert.
To retrieve last row id right after I do successful... (2 Replies)
Discussion started by: arushunter
2 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I am new to Unix.
I have written pl/sql script to be run in Unix.
I have used Merge statement and subsequently would like to know the number of rows updated or inserted.
Any suggestions in this regard would be great
Thanks in advance
Kushal (0 Replies)
Discussion started by: kushal_cog
0 Replies
3. Solaris
Hi,
I was wondering if there is an easy / recommended way to do the following:
Copy existing OS to 2 NEW drives inserted to server.
Netra 440 / Solaris 8
1. install the 2 new physical drives,
2. reconfigure the four drives to a RAID 1 array, and
3. copy the existing 2 drives... (4 Replies)
Discussion started by: kmac22068
4 Replies
4. UNIX for Beginners Questions & Answers
Hi Folks,
I have below files in one directory:
Spiross-MBP:AIRTEMP spirospap$ ls -1
CPK2004001
CPK2004002
CPK2004003
etc...
JFK2003001
JFK2003002
JFK2003003
etc...
TEB1999001
TEB1999002
TEB1999003
etc...
Month/year is in Filename and also in the file Header, first line. (18 Replies)
Discussion started by: spirospap
18 Replies
LEARN ABOUT DEBIAN
sdl_cdopen
SDL_CDOpen(3) SDL API Reference SDL_CDOpen(3)
NAME
SDL_CDOpen - Opens a CD-ROM drive for access.
SYNOPSIS
#include "SDL.h"
SDL_CD *SDL_CDOpen(int drive);
DESCRIPTION
Opens a CD-ROM drive for access. It returns a SDL_CD structure on success, or NULL if the drive was invalid or busy. This newly opened CD-
ROM becomes the default CD used when other CD functions are passed a NULL CD-ROM handle.
Drives are numbered starting with 0. Drive 0 is the system default CD-ROM.
EXAMPLES
SDL_CD *cdrom;
int cur_track;
int min, sec, frame;
SDL_Init(SDL_INIT_CDROM);
atexit(SDL_Quit);
/* Check for CD drives */
if(!SDL_CDNumDrives()){
/* None found */
fprintf(stderr, "No CDROM devices available
");
exit(-1);
}
/* Open the default drive */
cdrom=SDL_CDOpen(0);
/* Did if open? Check if cdrom is NULL */
if(!cdrom){
fprintf(stderr, "Couldn't open drive: %s
", SDL_GetError());
exit(-1);
}
/* Print Volume info */
printf("Name: %s
", SDL_CDName(0));
printf("Tracks: %d
", cdrom->numtracks);
for(cur_track=0;cur_track < cdrom->numtracks; cur_track++){
FRAMES_TO_MSF(cdrom->track[cur_track].length, &min, &sec, &frame);
printf(" Track %d: Length %d:%d
", cur_track, min, sec);
}
SDL_CDClose(cdrom);
SEE ALSO
SDL_CD, SDL_CDtrack, SDL_CDClose
SDL
Tue 11 Sep 2001, 22:58 SDL_CDOpen(3)