I use this command:
find . \( -iname '*.jpg' -o -iname '*.jpeg' \) -print0 | xargs -0 -n 1 -P 4 jpegoptim --max=70 -s
But it fails on some images (jpegoptim receive SEGFAULT) and crash xargs, and all process fail.
How to skip fails, and continue task?
Thank