pargs(1) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

pargs(1)

pargs(1)                         User Commands                        pargs(1)

NAME
       pargs  -  print  process arguments, environment variables, or auxiliary
       vector

SYNOPSIS
       pargs [-acCeFlLx] [pid | core]...

DESCRIPTION
       The pargs utility examines a target process or process  core  file  and
       prints arguments, environment variables and values, or the process aux‐
       iliary vector.


       pargs  outputs  unprintable  characters  as escaped octal in the format
       \xxx, unless the character is one of the characters  specified  in  the
       "Escape  Sequences"  section of formats(7), in which case the character
       is printed as specified in that section.


       pargs attempts to be sensitive to the locale of the target process.  If
       the  target process and the pargs process do not share a common charac‐
       ter encoding, pargs attempts to employ the iconv(3C) facility to gener‐
       ate a printable version of the extracted strings.  In  the  event  that
       such a conversion is impossible, strings are displayed as 7-bit ASCII.

OPTIONS
       The following options are supported:

       -a

           Prints process arguments as contained in argv[] (default).


       -c

           Treats strings in the target process as though they were encoded in
           7-bit  ASCII,  regardless  of  the locale of the target. The use of
           iconv(3C) is suppressed.


       -e

           Prints process environment variables and values as  pointed  at  by
           the _environ symbol or by pr_envp in /proc/pid/psinfo.


       -F

           Force.  Grabs  the  target process even if another process has con‐
           trol. See USAGE below.


       -l

           Displays the arguments as a single command line. The  command  line
           is  printed  in a manner suitable for interpretation by /bin/sh. If
           the arguments contain unprintable  characters,  or  if  the  target
           process  is  in a different locale, a warning message is displayed.
           The resulting command line might not be  interpreted  correctly  by
           /bin/sh.


       -x

           Prints process auxiliary vector.


       -C

           Current. When applied to the -a or -e flags, get the current values
           corresponding  to those flags. Falls back to lite mode and prints a
           message to stderr if unable to access current data.


       -L

           Lite. When applied to the -a or -e flags, gets  the  values  corre‐
           sponding  to  those  flags  at  the point the process executed (de‐
           fault).


       -?
       --help

           Print usage message and immediately exit.




       Only one of the -C or -L flags can be used in the  same  invocation  of
       the command.

OPERANDS
       The following operands are supported:

       pid     Process ID list.


       core    Process core file.


USAGE
       Caution  should  be exercised when using the -F flag. Imposing two con‐
       trolling processes on one victim process can lead to chaos.  Safety  is
       assured  only if the primary controlling process, typically a debugger,
       has stopped the victim process and the primary controlling  process  is
       doing  nothing  at  the moment of application of the proc tool in ques‐
       tion.

EXIT STATUS
       The following exit values are returned:

       0           Successful operation.


       non-zero    An error has occurred (such as no such process,  permission
                   denied, or invalid option).


FILES
       /proc/pid/*    Process information and control files.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/core-os _ Interface StabilityCommit‐
       ted


SEE ALSO
       proc(1), iconv(3C), proc(5), ascii(7), attributes(7), environ(7),  for‐
       mats(7)

HISTORY
       Support  for  the  -?  and  --help  options was added in Oracle Solaris
       11.4.42.


       Support for the -C and -L options was added in Oracle Solaris 11.3.12.


       Support for the -l option was added in Solaris 10 3/05.


       The pargs command, including support for the -a, -c, -e, -x, and -F op‐
       tions, was introduced in Solaris 9.

Oracle Solaris 11.4               29 Nov 2022                         pargs(1)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3