Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: howto exec('nice convert ...')?  (Read 5679 times)

0 Members and 1 Guest are viewing this topic.

GGallery

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 61
howto exec('nice convert ...')?
« on: September 23, 2004, 05:38:52 am »

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)
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.