I wrote a simple python script that outputs a bunch of linux commands for a custom image manipulation command-line tool.
As an example, here is what the python script creates:
img_dae_create /d /t /19 "file1.jpg" -output "heavy" -t /mnt/img/output/
img_dae_create /d /t /7 "file2.jpg" -output "light" -t /mnt/img/output/
img_dae_create /d /t /8 "file3.jpg" -output "ex" -t /mnt/img/output/
Normally, I just copy and paste them to my Ubuntu command line and run one by one. Each command can take from 1 minute to 15+ minutes to execute.
But sometimes, the python script will generate 100s of these, and it is very tedious to copy and paste each one.
So I was wondering what would be the best command line operator to use in this case?
Would ; be better than && given that:
The time it takes for each command to run could be between 1 and 15 minutes.
The outcome of the command does not matter, if it fails, then the command line tool records that in a log file and can be dealt with later.
Thanks!