Continue thru script while system() is finished

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • btpoole
    New Member
    • Jan 2014
    • 3

    Continue thru script while system() is finished

    I have a Perl script that starts a batch script. The batch script downloads a live stream from the internet and creates a file on the server. The file then can be played by a device on the network. The line directly following the batch script sets the location of file so the device will be directed there to retrieve the file. How can I get the script to continue to the location line while the batch script is running? Code looks like:

    Code:
    use strict;
    use warnings;
    
    my $test_path= "http://xxx.xxx.x.x:8000/test/stream1.m3u8";
    system("batch statment here &");                
    print "Location: $test_path";
    Last edited by zmbd; Jan 1 '14, 09:34 PM. Reason: [Z{Please use the [CODE/] button to format posted script and formated text - Please read the FAQ}]
Working...