Date: Tue, 29 Jun 1999 21:38:04 +0200 From: Anton Berezin <tobez@plab.ku.dk> To: "Ronald 'Ko' Klop" <ronald@node11a94.a2000.nl> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: permanent nice? Message-ID: <19990629213804.D4166@lion.plab.ku.dk> In-Reply-To: <Pine.BSF.4.05.9906292111210.5404-100000@dlanor.evertsen.nl>; from Ronald 'Ko' Klop on Tue, Jun 29, 1999 at 09:13:35PM %2B0200 References: <Pine.BSF.4.05.9906292111210.5404-100000@dlanor.evertsen.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jun 29, 1999 at 09:13:35PM +0200, Ronald 'Ko' Klop wrote: > Is it possible to make an application start with nice -10 every time > when you're not root? Or better can root make an application always > start with nice -10. Also for the other users on the system? If you wrote the application or have the source available, man 3 nice man 2 setpriority If you don't, you can create a wrapper for the app (and install it instead of the application, moving the real thing into another location, if needed), like this one (untested): #! /usr/bin/perl -w use POSIX; POSIX::nice( 10) if $>; # i.e. if not root exec { '/usr/local/bin/application' } @ARGV or print STDERR $!; -- Anton Berezin <tobez@plab.ku.dk> The Protein Laboratory, University of Copenhagen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990629213804.D4166>