4 ms·
This is actually quite common and acceptable if you want to interact with a piece of software for which there is no library or api. One real world example is p
by shangxiao 12y ago
This is actually quite common and acceptable if you want to interact with a piece of software for which there is no library or api. One real world example is producing thumbnails from Word documents using Libre Office.
- argggh 12y agoYou don't have to do it explicitly either. In Perl, for instance, doing stuff like open($tgz, "|-", "gzip | tar -cvf /tmp/file.tgz"); is going to cause execution of /bin/sh behind the scenes. Assuming that /bin/sh is never called during processing of external requests is risky.
- deleted 12y ago[deleted]