Can we directly call system ?

From: (brytwang_at_gmail_dot_com)
Date: Wed Dec 26 2007 - 06:37:29 PST

  • Next message: Paul H. Hargrove: "Re: Can we directly call system ?"
    Dear  Sir ,
    
    Yesterday , I wrote to you for help ,today I have another question .
    
    I guess if I can directly call " cr_restart" in system() function ? In my
    program there is some problems .
    
    The form of my program is as follows :
    
                        ................
                       checkpoint_func() ; //place1 , successfully ,and I have a
    checkpoint file  named  as " filename"
                       ................
                       ...............
                      system( " cr_restart  filename") ;//I want to imitate  the
    command-line form to let it go to place1
    
                       .............
    but , the error told me that " open (filename, O_RDONLY): No Such file or
    directory "
    
    So , I write another program to seperately use system() function ,it meets
    my request.
    
    I can not understand , would you help me ?
    
    Thanks !
    
    Daniel.
    

  • Next message: Paul H. Hargrove: "Re: Can we directly call system ?"