I have a vital script, but it works only under Windows. Having broken my head a little, I realized that the problem of interaction with the system, and everything collapses because of 2 lines. Can you help me fix them please ... I beg of you.
My script on the pearl is in the folder with the photo. Works fine. But there is a second script that lies in the same folder and executes script number 1.
Here is the script: smooth frame change in timelapse / slideshow video . As I understand it, the problem is in lines from # 35 to # 46.
my $cmd = "smooth.pl --fps $fps --start-image $start_img --final-image $final_img --progression $progression"; # To consume all available CPU cores without slowing down the system # meke each 8-th smooth.pl running in foreground # while other 7 smooth.pl scripts are running in background. # These lines needs to be rewritten to run under Linux. if ($i % $threads_num) { print BATCH "START /MIN /BELOWNORMAL CMD /C CALL $cmd\n" } else { print BATCH "$cmd\n" }
I tried to execute the script without change. Result:
composing batch file './smooth_all.bat'... done.
Help me please. Very necessary.