473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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:

Expand|Select|Wrap|Line Numbers
  1. use strict;
  2. use warnings;
  3.  
  4. my $test_path= "http://xxx.xxx.x.x:8000/test/stream1.m3u8";
  5. system("batch statment here &");                
  6. print "Location: $test_path";
Jan 1 '14 #1
0 1004

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Bob Bedford | last post by:
I've a script that must "launch" an other script on some situations. firstscript.php: .... If ($newarticle) //launch secondscript.php .... The "secondscript.php" may take quite long, and is...
1
by: Bob Bedford | last post by:
I've an insert statement that takes datas from XML files. Sometimes, for some reasons, the XML file get corrupted. If it's the case, the script crashes and it doesn't continue, even if the...
1
by: Nico Leiska | last post by:
How would it be possible to print some output before the script is finished, or a line at a time if possible with HTML specs? This is because I'm running a LDAP query that takes some 30-60...
0
by: John Constant | last post by:
Using the MS C++ Example http://support.microsoft.com/default.aspx?scid=kb;en-us;261003 I've successfully managed to trap and log Script Errors that are generated by the WebBrowser (IE 6) which is...
6
by: tatamata | last post by:
Hello. How can I run some Python script within C# program? Thanks, Zlatko
0
by: chandniashar | last post by:
This is my perl program for tictactoe. Can anyone help me run the program as a cgi script? #!/usr/bin/perl # Description: This program implements the game of Tic Tac Toe # The grid...
1
by: fortwilliam | last post by:
I have a newsletter system and want to have it work automatically. what I have so far works with a visitor to a page with a tiny iframe in it. This iframe calls up the send.pl newsletter script....
3
by: vaskarbasak | last post by:
Hi All, i want to run shell script from java.shell script run successfully and generate a file. But when i want to check the existence of that file,it shows that the file is not present. ...
1
by: Méta-MCI \(MVP\) | last post by:
Hi ! Replace: os.startfile("launch_trace.bat") by os.startfile('start "" cmd /c launch_trace.bat') and "le tour est joué". @-salutations
3
by: PHPstarter | last post by:
Hiya. I have a script that is run by a <form> which basically allows u to write into inputs the fields username, new username, password, repeat password, comment etc, The problem is that I want...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.