Re: How do you use 'cdrw' within an application?

From: Noel R. Nihill (nnihil01_at_Motorola.BLAH.com)
Date: 12/02/03

  • Next message: Peter Bunclark: "Re: How do you use 'cdrw' within an application?"
    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
    

  • Next message: Peter Bunclark: "Re: How do you use 'cdrw' within an application?"

    Relevant Pages

    • Re: How do you use cdrw within an application?
      ... > files/image to a CD from within the application. ... > 'cdrw' may be able to be used, but it's a command-line command. ... I *could* be arguing in my spare time ...
      (comp.sys.sun.admin)
    • Re: How do you use cdrw within an application?
      ... > files/image to a CD from within the application. ... > 'cdrw' may be able to be used, but it's a command-line command. ... I *could* be arguing in my spare time ...
      (comp.sys.sun.hardware)
    • Re: How do you use cdrw within an application?
      ... > files/image to a CD from within the application. ... > 'cdrw' may be able to be used, but it's a command-line command. ... I *could* be arguing in my spare time ...
      (comp.unix.solaris)
    • How do you use cdrw within an application?
      ... 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. ...
      (comp.unix.solaris)
    • How do you use cdrw within an application?
      ... 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. ...
      (comp.sys.sun.admin)