Re: How do you use 'cdrw' within an application?
From: Noel R. Nihill (nnihil01_at_Motorola.BLAH.com)
Date: 12/02/03
- Previous message: gg.2.starfire_at_spamgourmet.com: "Portable Unix shell scripts"
- In reply to: M Sudderth: "How do you use 'cdrw' within an application?"
- Next in thread: Peter Bunclark: "Re: How do you use 'cdrw' within an application?"
- Reply: Peter Bunclark: "Re: How do you use 'cdrw' within an application?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 2 Dec 2003 13:27:55 -0000
"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()
> M Sudderh
> msudderth@sfa.com
-- Noel R. Nihill UNIX® platform development Motorola NSS I *could* be arguing in my spare time
- Previous message: gg.2.starfire_at_spamgourmet.com: "Portable Unix shell scripts"
- In reply to: M Sudderth: "How do you use 'cdrw' within an application?"
- Next in thread: Peter Bunclark: "Re: How do you use 'cdrw' within an application?"
- Reply: Peter Bunclark: "Re: How do you use 'cdrw' within an application?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|