I want a C program to produce a core dump under certain circumstances. This is a program that runs in a production environment and isn\'t easily stopped and restarted to adj
Sun describes how to get a core file on Solaris, HP-UX, Redhat, and Windows here.
Solaris has the gcore program. HP-UX may have it.
Otherwise use gdb and its gcore commmand.
Windows has win-dbg-root\tlist.exe and win-dbg-root\adplus.vbs