This is neither a very sensible, nor very efficient thing to do.  You
should integrate the code into your executable, and not spawn our testing
executable with the system command.

You may be having problems because testXSLT is producing output to stderr.
Try adding the -q switch to suppress diagnostic output.  This may get rid
of most of the output, but there is always a chance that something will get
written, and the process may hang.

Dave



|---------+--------------------------->
|         |           "Narasimha      |
|         |           Kumar"          |
|         |           <[EMAIL PROTECTED]|
|         |           s.com>          |
|         |                           |
|         |           04/16/2002 03:04|
|         |           AM              |
|         |                           |
|---------+--------------------------->
  
>---------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                              |
  |        To:      <[email protected]>                              
                                              |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                        
                                              |
  |        Subject: testXSLT & Xalan binaries Fail in daemon process            
                                              |
  
>---------------------------------------------------------------------------------------------------------------------------|



Hi!
In my program I'm using 'testXSLT' binary that comes with the package to
transform XML. I'm using 'system' function to execute it. It looks
something like this
if(system("/home/simha/testXSLT -in /home/simha/332.xml -xsl
/home/simha/xsl.xml -out /home/simha/Out.xml")!=0){ }

when i run my program, if I run it from command line then the above
transformation works. But when i run the same program as a daemon, the
system() function fails. 'testXSLT' does not process.

Can any one give me a hint of what is happening and how to solve it?

cheers
simha.




Reply via email to