From owner-freebsd-questions Wed Sep 27 10: 8:59 2000 Delivered-To: freebsd-questions@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 B0E7A37B422 for ; Wed, 27 Sep 2000 10:08:49 -0700 (PDT) Received: by msp-26-178-57.mn.rr.com (Postfix, from userid 501) id B0A3511A; Wed, 27 Sep 2000 12:08:48 -0500 (CDT) Date: Wed, 27 Sep 2000 12:08:48 -0500 From: Goblin To: questions@FreeBSD.ORG Subject: Re: Limiting Perl CPU Utilization... Message-ID: <20000927120848.A30505@uswest.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''k+w%2FmQv8wyuph6w0" Content-Disposition: inline User-Agent: Mutt/1.3.8i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --k+w/mQv8wyuph6w0 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 least 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. --k+w/mQv8wyuph6w0 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 iD8DBQE50imfubgCGkrWpN4RApCXAJ4rpjtWyU4Swu7sW08thqqYsl9PmACeOqqb UR7m2isHtOjD/R4S/ye/Qs0= =E2ht -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message