fork from php or perl

Discussion in 'PHP' started by yerman, Dec 5, 2005.

  1. #1
    Hello everyone.

    I've a perl application running in windows which has run time of several hours.
    Till now I launch it from a ms-dos windows with output on file.
    Now I'm trying to insert in in a web contest, using a submit in a php form that call a system with the launch of the perl script.

    from php code:

    $command="perl $dir\proof.pl";
    system($command);

    The system is syncronous, and then it blocks the browser window till the end of execution. Impossible.
    I've tried with the forks both in php and in perl, but it seems that anyway the father process waits for the completion of the child.
    Maybe I did something wrong.
    Has anyone suggestions?

    Thank you very much.

    gero
     
    yerman, Dec 5, 2005 IP
  2. philej

    philej Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Strange, Linux doesn't act like this. Maybe you could just update a database/file that tells the process to be run and then have a second schedule batch script that will check to see if it needs to start the process?
     
    philej, Dec 5, 2005 IP