This script packages an executable and all of its shared libraries into one tar file. Optionally, you can provide the PID of the application and the name of the core file.The files are stripped of their directory paths and are stored under a relative directory named app/ allowing them to be unpacked in one directory.
On Solaris 9 or higher version, the list of files is derived from the core file rather than the process image if the core file is specified . You must provide the PID of the running application to assist in path resolution.
Two scripts are created to facilitate opening the core file when the tar file is unpacked:
opencore. Execute this script after you unpack the tar file. The script sets the name of the core file and the linker path to use the app/ subdirectory and then invokes dbx with the dbxrc file as the argument.
dbxrc. This script contains the dbx initialization commands to open the core file.