From owner-freebsd-isp Wed Sep 27 9:11:23 2000 Delivered-To: freebsd-isp@freebsd.org Received: from msp-26-178-57.mn.rr.com (msp-26-178-57.mn.rr.com [24.26.178.57]) by hub.freebsd.org (Postfix) with ESMTP id 2AAB937B422 for ; Wed, 27 Sep 2000 09:11:20 -0700 (PDT) Received: by msp-26-178-57.mn.rr.com (Postfix, from userid 0) id 0440B117; Wed, 27 Sep 2000 11:11:10 -0500 (CDT) Date: Wed, 27 Sep 2000 11:11:09 -0500 From: Goblin To: Chris Cook Cc: Goblin , freebsd-isp@freebsd.org Subject: Re: Limiting Perl CPU Utilization... Message-ID: <20000927111109.A19990@uswest.net> References: <39D0D607.29DEDE19@tcworks.net> <20000926122303.A12707@uswest.net> <39D2150B.6703C9F6@tcworks.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg*=ansi-x3-4-1968''pgp-md5; protocol*=ansi-x3-4-1968''application%2Fpgp-signature; boundary*="ansi-x3-4-1968''EeQfGwPcQSOJBaQU" Content-Disposition: inline User-Agent: Mutt/1.3.8i In-Reply-To: <39D2150B.6703C9F6@tcworks.net>; from ccook@tcworks.net on Wed, Sep 27, 2000 at 10:40:59AM -0500 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset*=ansi-x3-4-1968''us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable #!/bin/nice /usr/bin/perl As the interpreter line works to give it a +10 nice, at leats on linux. Giving nice arguments seems to bomb. Is anyone else a guru at shabang sematics? On 09/27, Chris Cook rearranged the electrons to read: > Goblin wrote: > >=20 > > Why not just use nice? It doesn't limit the CPU, really, but makes it > > easier for other processes to preempt the nicer process. >=20 > OK, so how would I go about telling the .pl script to run >=20 > nice -10 /usr/bin/perl /../cgi-bin/atdot/checkmail.pl >=20 > instead of just /usr/bin/perl /../cgi-bin/atdot/checkmail.pl? >=20 > Can I specify something at the top of the .pl script where it looks for > /usr/bin/perl? >=20 > Thanks! >=20 > --=20 > Chris >=20 > 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 Your eyes are weary from staring at the CRT. You feel sleepy. Notice how restful it is to watch the cursor blink. Close your eyes. The opinions stated above are yours. You cannot imagine why you ever felt otherwise. --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE50hwdubgCGkrWpN4RApiFAKCn5W2/tveyKK37sUo6VwxlEKCpDgCbBRav rcX7p33dlGHpLYQbU30Ff4c= =ZR0J -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message