Solaris 7 System Administration Supplement

How to Set a Core File Name Pattern

  1. Determine whether you want to set a per-process or global core file and select one of the following:

    1. Set a per-process core file name pattern.


      $ coreadm -p $HOME/corefiles/%f.%p $$ 
      
    2. Set a global core file name pattern.

      Become superuser first.


      # coreadm -g /var/core/core.%f.%p