


How do that with one script, without having to divide anything? Simply with GNU parallel: export -f WatchDog & export -f TempControl & export -f GPUcontrol parallel -j3 ::: WatchDog TempControl GPUcontrol. The second problem is that I lost time dividing the images and batches and copying the script to four directories, open 4 terminal windows, bla bla. So I discovered that I can divide these files in 4 batches, put each batch in a directory and fire 4, from four terminal windows, four processes, so I have four instances of my script, at the same time, processing those images and the job takes 1/4 of the time. After running this app, I see that the CPU is just 10%. Processing just one file at a time, takes a lot of time. The problem is that this script does one at a time, something like this: FILES=(./*.png) This application is called by a script I did. I have an application called pngout that I run to compress these images. I have a bunch of PNG images on a directory.
