1pargs(1) User Commands pargs(1)
2
3
4
6 pargs - print process arguments, environment variables, or auxil‐
7 iary vector
8
10 pargs [-aceFlx] [pid | core]...
11
12
14 The pargs utility examines a target process or process core file and
15 prints arguments, environment variables and values, or the process aux‐
16 iliary vector.
17
18
19 pargs outputs unprintable characters as escaped octal in the format
20 \xxx, unless the character is one of the characters specified in the
21 "Escape Sequences" section of formats(5), in which case the character
22 is printed as specified in that section.
23
24
25 pargs attempts to be sensitive to the locale of the target process. If
26 the target process and the pargs process do not share a common charac‐
27 ter encoding, pargs attempts to employ the iconv(3C) facility to gener‐
28 ate a printable version of the extracted strings. In the event that
29 such a conversion is impossible, strings are displayed as 7-bit ASCII.
30
32 The following options are supported:
33
34 -a Prints process arguments as contained in argv[] (default).
35
36
37 -c Treats strings in the target process as though they were
38 encoded in 7-bit ASCII, regardless of the locale of the target.
39 The use of iconv(3C) is suppressed.
40
41
42 -e Prints process environment variables and values as pointed at by
43 the _environ symbol or by pr_envp in /proc/pid/psinfo.
44
45
46 -F Force. Grabs the target process even if another process has con‐
47 trol.
48
49
50 -l Displays the arguments as a single command line. The command line
51 is printed in a manner suitable for interpretation by /bin/sh. If
52 the arguments contain unprintable characters, or if the target
53 process is in a different locale, a warning message is displayed.
54 The resulting command line might not be interpreted correctly by
55 /bin/sh.
56
57
58 -x Prints process auxiliary vector.
59
60
62 The following operands are supported:
63
64 pid Process ID list.
65
66
67 core Process core file.
68
69
71 Caution should be exercised when using the -F flag. Imposing two con‐
72 trolling processes on one victim process can lead to chaos. Safety is
73 assured only if the primary controlling process, typically a debugger,
74 has stopped the victim process and the primary controlling process is
75 doing nothing at the moment of application of the proc tool in ques‐
76 tion.
77
79 The following exit values are returned:
80
81 0 Successful operation.
82
83
84 non-zero An error has occurred (such as no such process, permission
85 denied, or invalid option).
86
87
89 /proc/pid/* Process information and control files.
90
91
93 See attributes(5) for descriptions of the following attributes:
94
95
96
97
98 ┌─────────────────────────────┬─────────────────────────────┐
99 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
100 ├─────────────────────────────┼─────────────────────────────┤
101 │Availability │SUNWesu │
102 ├─────────────────────────────┼─────────────────────────────┤
103 │Interface Stability │Evolving │
104 └─────────────────────────────┴─────────────────────────────┘
105
107 proc(1), iconv(3C), proc(4), ascii(5), attributes(5), environ(5), for‐
108 mats(5)
109
110
111
112SunOS 5.11 19 Jun 2006 pargs(1)