The R Project SVN R

Rev

Rev 70779 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 70779 Rev 72129
Line 1... Line 1...
1
% File src/library/base/man/Sys.getpid.Rd
1
% File src/library/base/man/Sys.getpid.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2014 R Core Team
3
% Copyright 1995-2017 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{Sys.getpid}
6
\name{Sys.getpid}
7
\alias{Sys.getpid}
7
\alias{Sys.getpid}
8
 
8
 
Line 21... Line 21...
21
  example FreeBSD and macOS use IDs up to 99999) and a
21
  example FreeBSD and macOS use IDs up to 99999) and a
22
  positive integer (up to 32767) under Windows.
22
  positive integer (up to 32767) under Windows.
23
}
23
}
24
\examples{\donttest{
24
\examples{\donttest{
25
Sys.getpid()
25
Sys.getpid()
-
 
26
 
-
 
27
## Show files opened from this R process
-
 
28
if(.Platform$OS.type == "unix") ## on Unix-alikes such Linux, macOS, FreeBSD:
-
 
29
   system(paste("lsof -p", Sys.getpid()))
26
}}
30
}}
27
\keyword{utilities}
31
\keyword{utilities}