From owner-freebsd-isp Wed Sep 27 8:42:46 2000 Delivered-To: freebsd-isp@freebsd.org Received: from ns.tcworks.net (ns.tcworks.net [216.61.218.2]) by hub.freebsd.org (Postfix) with ESMTP id AF8C537B618 for ; Wed, 27 Sep 2000 08:39:46 -0700 (PDT) Received: from tcworks.net (stuck.sticky.org [216.61.218.6]) by ns.tcworks.net (8.9.2/8.9.2) with ESMTP id KAA18160; Wed, 27 Sep 2000 10:33:01 -0500 (CDT) (envelope-from ccook@tcworks.net) Message-ID: <39D2150B.6703C9F6@tcworks.net> Date: Wed, 27 Sep 2000 10:40:59 -0500 From: Chris Cook X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Goblin Cc: freebsd-isp@freebsd.org Subject: Re: Limiting Perl CPU Utilization... References: <39D0D607.29DEDE19@tcworks.net> <20000926122303.A12707@uswest.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Goblin wrote: > > Why not just use nice? It doesn't limit the CPU, really, but makes it > easier for other processes to preempt the nicer process. OK, so how would I go about telling the .pl script to run nice -10 /usr/bin/perl /../cgi-bin/atdot/checkmail.pl instead of just /usr/bin/perl /../cgi-bin/atdot/checkmail.pl? Can I specify something at the top of the .pl script where it looks for /usr/bin/perl? Thanks! -- Chris o----< ccook@tcworks.net >-------------------------------------o |Chris Cook - Admin | TCWORKS.NET - http://www.tcworks.net | |The Computer Works ISP | FreeBSD - http://www.freebsd.org | o--------------------------------------------------------------o To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message