KillPID: Kill a list of PIDs in Windows

Description Usage Arguments Value Examples

View source: R/Powershellfunctions.r

Description

Kill a list of PIDs in Windows

Usage

1
KillPID(PIDlist)

Arguments

PIDlist

array of PIDs that needs to be killed

Value

data.table with killed PID and there status

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
cl <- parallel::makePSOCKcluster(names = 2)
doParallel::registerDoParallel(cl)
ClusterData <- GetStartedClusterPIDData(cl)


KillPID(ClusterData[Role == "worker",]$PID)
try(parallel::stopCluster(cl))
## End(Not run)

GreenGrassBlueOcean/RClusterWatcher documentation built on Dec. 17, 2021, 10:22 p.m.