Re: [R] Changing the name of the "R" process in top

From: Matthew Keller <>
Date: Sat, 28 May 2011 13:12:52 -0600

Nice, Steve - I think this will work. I'll just call Sys.getpid() at the top of each session and then look at the .Rout files to figure out which is related to which...

On Sat, May 28, 2011 at 1:10 PM, Steve Lianoglou <> wrote:
> Hi,
> On Sat, May 28, 2011 at 2:48 PM, Matthew Keller <> wrote:
>> Hi all,
>> Perhaps this is more of a unix question, but I'll give it a try here.
>> I am running 9 different R processes at the same time (called from a
>> shell script using R CMD BATCH).  When I use the top program to
>> monitor how they are doing, it is impossible to tell which R process
>> is related to which R script. Is there a way to rename a specific
>> instantiation of an R process in top with another, more informative
>> name, e.g., something like R-script1 R-script2 etc?
> How about flipping it around and asking your scripts to let you know
> what process they are (so you can ID in `top` by their process id, and
> not process name/command).
> R> Sys.getpid()
> [1] 27813
> Maybe you can have your scripts `cat` that value to stdout when they run?
> --
> Steve Lianoglou
> Graduate Student: Computational Systems Biology
>  | Memorial Sloan-Kettering Cancer Center
>  | Weill Medical College of Cornell University
> Contact Info:

Matthew C Keller
Asst. Professor of Psychology
University of Colorado at Boulder

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 28 May 2011 - 19:21:40 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 28 May 2011 - 19:30:10 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive