Re: How do you use 'cdrw' within an application?
From: Peter Bunclark (psb_at_ast.cam.ac.uk)
Date: 12/03/03
- Previous message: Noel R. Nihill: "Re: How do you use 'cdrw' within an application?"
- In reply to: Noel R. Nihill: "Re: How do you use 'cdrw' within an application?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 03 Dec 2003 08:19:40 +0000
Noel R. Nihill wrote:
>"M Sudderth" <msudderth@sfa.com> wrote in message
>news:d728b871.0312011303.19746d8c@posting.google.com...
>
>
>>I'm using a Plextor PX-W1210TSE CD-RW drive on a Solaris 8 system.
>>
>>I'm writing an application in C++ and need to be able to burn
>>files/image to a CD from within the application.
>>
>>'cdrw' may be able to be used, but it's a command-line command. I may
>>be able to use the "system" operation:
>> i.e.
>> system("mkisofs -r <directory> 2>/tmp/cdrw_log | cdrw -i -p 4");
>>
>>But errors can not be returned to the calling application. This will
>>only
>>work in the "happy day" scenario.
>>
>>Does anyone know how to write/burn files from inside an application?
>>
>>Surely, there must be a cleaner way.
>>
>>
>
>You could use fork(), exec() and waitpid()
>
>
>
Use popen(3C) to read back the output.
Pete.
>
>
>
>
- Previous message: Noel R. Nihill: "Re: How do you use 'cdrw' within an application?"
- In reply to: Noel R. Nihill: "Re: How do you use 'cdrw' within an application?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|