-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathget_Rscript_PID.Rd
More file actions
41 lines (40 loc) · 1.08 KB
/
Copy pathget_Rscript_PID.Rd
File metadata and controls
41 lines (40 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{get_Rscript_PID}
\alias{get_Rscript_PID}
\title{Get the running "Rscript" processes PID}
\usage{
get_Rscript_PID(...)
}
\arguments{
\item{...}{not used.}
}
\value{
an integer vector with the process ID (pid) of the
"Rscript" processes.
}
\description{
Returns a vector with the process ID (pid) of the "Rscript"
processes which are currently running.
}
\examples{
\dontrun{
# create several running processes of Rscript (to shitdown)
system("Rscript -e repeat{2+2}", wait = FALSE) # this process should be stuck
system("Rscript -e repeat{2+2}", wait = FALSE) # this process should be stuck
# here are there pid numbers:
get_Rscript_PID()
# let's kill them:
kill_all_Rscript_s()
# they are gone...
get_Rscript_PID() # we no longer have Rscripts running
}
}
\references{
tasklist details from microsoft homepage:
\url{http://technet.microsoft.com/en-us/library/bb491010.aspx}
}
\seealso{
\code{\link{get_tasklist}}, \code{\link{get_Rscript_PID}},
\code{\link{get_pid}}, \code{\link{kill_pid}},
\code{\link{kill_all_Rscript_s}}, \link[tools]{pskill}
}