govern@houxf.UUCP (06/08/83)
The manual page for crash(8) in 4.1BSD says to run "ps -axlk" to analyze the /vmcore created by a crash. However, my vmcore file was saved as /usr/crash/vmcore.6, and I don't have a spare 4 Meg of space on my root file system to move the file back to /vmcore. Is there any way I can lie to ps about the location, or otherwise make it work? Thanks; Bill Stewart houxf!hoscf!bin
Michael.Young%cmu-cs-g@sri-unix.UUCP (06/09/83)
Yes, you can specify the core file for '-k' just like you can respecify the kernel file for other options. For example, I just tried ps -k foo where foo is a (root-directed) filename that I just put junk in. [Needless to say, ps barfed, but it found and read the file.] Michael
puder@burdvax.UUCP (06/10/83)
I believe you need to do % ps -axlk /usr/crash/vmcore.6 (Full pathname is required; ps does chdir("/dev") before opening files). If you have the source, try looking through it for references to argv. On our 4.1bsd system, there are three optional arguments to ps that default to: ps - /vmcore /dev/drum /vmunix Karl Puder burdvax!puder SDC-aBC, R & D Paoli, Pa. (215)648-7555