comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: nicing idl at startup from idlwave
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: nicing idl at startup from idlwave [message #52143] Mon, 22 January 2007 09:22 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Mon, 22 Jan 2007 10:00:30 -0600, Christopher Thom wrote:

> Hi gang,
>
> A quick question -- does anyone know how to start idl from idlwave with a
> lower process priority? I tried setting idlwave-shell-explicit-file-name
> to something like "nice -5 idl" without any success. Looks like this needs
> to be the filename only, I presume since idl is started without recourse
> to the shell.

Probably the easiest is to make a shell script "niceidl" and reference
that directly in shell-explicit-filename. renice also could do the
trick post-facto, and a little elisp could make it much easier to use.
Stick this in your .emacs:

(defun renice-idl (&optional priority)
(interactive "NIDL Priority (nice): ")
(if (idlwave-shell-is-running)
(shell-command
(format "renice %d -p %d"
priority
(process-id (get-buffer-process (idlwave-shell-buffer)))))))
(idlwave-shell-define-key-both [f9] 'renice-idl)

Then hitting f9 will prompt for a nice value to set the IDL process
to. Note that you can only increase 'nice' on most systems (from
0-20). If you really want the same nice value every time you start
IDLWAVE, you can:

(add-hook 'idlwave-shell-mode-hook (lambda () (renice-idl 5)))

JD
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: ascii value of a char
Next Topic: Re: ascii value of a char

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:52:44 PDT 2025

Total time taken to generate the page: 0.00374 seconds