[comp.unix.questions] fixing a priority to an executable file

zazula@soliton.uucp (Ralph Zazula) (06/02/91)

Hi,

Is it possible to have a program start with a higher priority when you
execute it from a shell?  Specifically, I'd like to run C-Kermit at a
slightly higher priority (read, it gets MORE CPU time).  I find that
file transfers sometimes fail/abort when I run a CPU intensive process
while C-Kermit is transferring a file.  This is on a 68030 NeXT computer
running NextStep 2.0.  This OS is BSD-ish and built on Mach.

Thanks,
Ralph

   |----------------------------------------------------------------------|
   | Ralph Zazula                               "Computer Addict!"        |
   | University of Arizona                 ---  Department of Physics     |
   |   UAZHEP::ZAZULA                            (DecNet/HEPNet)          |
   |   zazula@uazhe0.physics.arizona.edu         (Internet)               |
   |----------------------------------------------------------------------|
   |   "You can twist perceptions, reality won't budge."  - Neil Peart    |
   |----------------------------------------------------------------------|

Dan_Jacobson@ATT.COM (06/02/91)

>>>>> 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.