Date: Wed, 27 Sep 2000 11:11:09 -0500 From: Goblin <h0b_g0blin@yahoo.com> To: Chris Cook <ccook@tcworks.net> Cc: Goblin <h0b_g0blin@yahoo.com>, freebsd-isp@freebsd.org Subject: Re: Limiting Perl CPU Utilization... Message-ID: <20000927111109.A19990@uswest.net> In-Reply-To: <39D2150B.6703C9F6@tcworks.net>; from ccook@tcworks.net on Wed, Sep 27, 2000 at 10:40:59AM -0500 References: <39D0D607.29DEDE19@tcworks.net> <20000926122303.A12707@uswest.net> <39D2150B.6703C9F6@tcworks.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000927111109.A19990>