howto exec('nice convert ...')? howto exec('nice convert ...')?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

howto exec('nice convert ...')?

Started by GGallery, September 23, 2004, 05:38:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GGallery

that's more of a general php question:
I'd like coppermine to 'nice' the exec('convert ..') part in include/picmgmt.inc.php.

Right now it's being executed with
Quote
                $cmd = "{$CONFIG['impath']}convert -quality ...
                exec ($cmd, $output, $retval);

how can I modify the code so that the cpu consuming convert is done with a nice value=10?

there is proc_nice which can only increase the nice value but not decrease (unless you're root)