Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!att!cbfsb!danj1 From: Dan_Jacobson@ATT.COM Newsgroups: comp.unix.questions Subject: Re: fixing a priority to an executable file Message-ID: <1991Jun2.105545.860@cbfsb.att.com> Date: 2 Jun 91 10:55:45 GMT References: <1991Jun1.213106.732@arizona.edu> Sender: news@cbfsb.att.com Reply-To: Dan_Jacobson@ihlpz.ATT.COM Organization: AT&T-BL, Naperville IL, USA Lines: 23 In-Reply-To: zazula@soliton.uucp's message of 2 Jun 91 04: 31:05 GMT Originator: danj1@cbnewsf.cb.att.com >>>>> On 2 Jun 91 04:31:05 GMT, zazula@soliton.uucp (Ralph Zazula) said: Ralph> Distribution: usa,local ??? Ralph> Is it possible to have a program start with a higher priority when you Ralph> execute it from a shell? [Maybe:] $ mv program program_real $ echo nice [some negative priority (only works for the superuser though)] program_real > program $ chmod +x program #+sx ? anyway, "[only] The super-user may run commands with priority higher than normal by using a negative increment, e.g., - -10." so watch out for set-uid shell script temptations. Ralph> Specifically, I'd like to run C-Kermit at a Ralph> slightly higher priority (read, it gets MORE CPU time). I find that Ralph> file transfers sometimes fail/abort when I run a CPU intensive process Ralph> while C-Kermit is transferring a file. This is on a 68030 NeXT computer Ralph> running NextStep 2.0. This OS is BSD-ish and built on Mach.