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

From: Peter Bunclark (psb_at_ast.cam.ac.uk)
Date: 12/03/03

  • Next message: Levyte: "I Need a Sybase DB Server on my solaris x86 box !!!!!!"
    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.

    >
    >
    >
    >


  • Next message: Levyte: "I Need a Sybase DB Server on my solaris x86 box !!!!!!"

    Relevant Pages

    • Re: How do you use cdrw within an application?
      ... Noel R. Nihill wrote: ... >>But errors can not be returned to the calling application. ... there must be a cleaner way. ... >You could use fork(), execand waitpid ...
      (comp.unix.solaris)
    • Re: How do you use cdrw within an application?
      ... Noel R. Nihill wrote: ... >>But errors can not be returned to the calling application. ... there must be a cleaner way. ... >You could use fork(), execand waitpid ...
      (comp.sys.sun.admin)
    • Re: How do you use cdrw within an application?
      ... Noel R. Nihill wrote: ... >>But errors can not be returned to the calling application. ... there must be a cleaner way. ... >You could use fork(), execand waitpid ...
      (comp.sys.sun.hardware)
    • Re: Practice of using fork()
      ... > reasonable to call fork() without calling exec(), ... The problem is that it can be difficult to perform this trick, ... POSIX programming is supposed to be portable. ...
      (comp.unix.programmer)
    • Re: registry cleaners
      ... I know for a fact that MS provided a registry clean-up tool from ... I'm 110% positive that MS did provide a registry cleaner tool on their ... removed from all Microsoft download sites. ... Calling an illegal alien an "undocumented worker" is like calling a ...
      (microsoft.public.windowsxp.general)