GCORE man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

GCORE(1)							      GCORE(1)

NAME
       gcore - get core images of running processes

SYNOPSIS
       gcore [-pgF] [-o filename] [-c content] process-id...

DESCRIPTION
       The  gcore  utility  creates a core image of each specified process. By
       default, the name of the core image file for the process whose  process
       ID is process-id is core.process-id.

OPTIONS
       The following options are supported:

       -c content
		      Produces	core  image  files with the specified content.
		      The content description uses the same tokens as in core‐
		      adm(1M).	The -c option does not apply to cores produced
		      due to the -p or -g flags.

       -F
		      Force. Grabs the target process even if another  process
		      has control.

       -g
		      Produces core image files in the global core file repos‐
		      itory with the global content  as	 configured  by	 core‐
		      adm(1M).	The  command  fails  if the user does not have
		      permissions to the global core file repository.

       -o filename
		      Substitutes filename in place of core as the first  part
		      of  the  name of the core image files. filename can con‐
		      tain the same tokens to be  expanded  as	the  paths  in
		      coreadm(1M).

       -p
		      Produces a core image file in the process-specific loca‐
		      tion with the process-specific content for each  process
		      as  configured by coreadm(1M).  The command fails if the
		      user does not have permissions to the  per-process  core
		      file repository.

OPERANDS
       The following operand is supported:

       process-id
		     process ID

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
		   On success.

       non-zero
		   On failure, such as non-existent process ID.

FILES
       core.process-id
			  core images

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

       ┌────────────────────┬─────────────────┐
       │  ATTRIBUTE TYPE    │ ATTRIBUTE VALUE │
       ├────────────────────┼─────────────────┤
       │Interface Stability │ See below.      │
       └────────────────────┴─────────────────┘

       The command syntax is Evolving. The Output Formats are Unstable.

SEE ALSO
       kill(1), coreadm(1M), setrlimit(2), core(4), proc(4), attributes(5)

NOTES
       gcore  is  unaffected  by  the  setrlimit(2)  system  call  using   the
       RLIMIT_CORE value.

				 Jun 19, 2006			      GCORE(1)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net