-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathget_tasklist.Rd
More file actions
41 lines (40 loc) · 1.09 KB
/
Copy pathget_tasklist.Rd
File metadata and controls
41 lines (40 loc) · 1.09 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.1): do not edit by hand
\name{get_tasklist}
\alias{get_tasklist}
\title{Get the running processes in windows task manager}
\usage{
get_tasklist(...)
}
\arguments{
\item{...}{not used.}
}
\value{
a data.frame with the current running processes.
}
\description{
Returns a data.frame with the current running processes
(Windows only).
}
\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}
\code{\link{kill_pid}}, \code{\link{kill_all_Rscript_s}}
}