4 ms·
>/usr/bin/sed: Argument list too long Maybe all of the filenames are passed as a single argument to sed?
by brazzledazzle 11y ago
>/usr/bin/sed: Argument list too long
Maybe all of the filenames are passed as a single argument to sed?
- mzs 11y agoIf so xargs or just a loop one file at a time should fix it.
- mettamage 11y agoI do have reasons to believe this is the error. Currently I tested it with 10 photo's (corrupted image removed), 200, 100, 150 and now I'm doing 190 (note: numbers are a ball park estimate). Interestingly, 200 didn't work, but it also gave the "/Users/mettamage/Downloads/Expose-master/expose.sh: line 139: /usr/bin/sed: Argument list too long" error, while the others did not. Edit: tested out all combinations. Argument list too long is indeed the error. I got this with 188 pictures: Scanning directories. Populating nav. Reading files......................................................................................................................................................................................... Building HTML........................................................................................................................................................................................ Starting encode fotos0001 fotos0002 .. etc. And I got this with 189 pictures. Scanning directories. Populating nav. Reading files.......................................................................................................................................................................................... Building HTML........................................................................................................................................................................................./Users/mettamage/Downloads/Expose-master/expose.sh: line 139: /usr/bin/sed: Argument list too long Starting encode fotos0001 fotos0002 ... etc. xargs it is!
- Jack000 11y agoadded a patch that should resolve this. Is it working for you now?