Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* How to get the process name from a CORE file?
@ 1996-04-18  4:00 Kenny Chan
  1996-04-19  4:00 ` Tony Quan
  1996-04-21  4:00 ` wgtn comb tax
  0 siblings, 2 replies; 5+ messages in thread
From: Kenny Chan @ 1996-04-18  4:00 UTC (permalink / raw)



Hi,

I would like to get the process name from a core
file. The following script runs okay on the 
HP UNIX environment:

strings core |sed -n -e 6p -e 6q

However, it doesn't work on the DEC Alpha running
OSF/1.

I would like to "collect" the core file on
my DEC Alpha and change its name to 
core.<process name> and save it for 
further investigation. Any hint on how to get the
name?

Thanks,
K CHan
-- 
---------------------------------------------------------------
Kenny Chan				      Software Engineer
Network Controller Base 		  Residential Broadband
---------------------------------------------------------------



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get the process name from a CORE file?
  1996-04-18  4:00 How to get the process name from a CORE file? Kenny Chan
@ 1996-04-19  4:00 ` Tony Quan
  1996-04-24  4:00   ` Timothy M. Wieman
  1996-04-21  4:00 ` wgtn comb tax
  1 sibling, 1 reply; 5+ messages in thread
From: Tony Quan @ 1996-04-19  4:00 UTC (permalink / raw)


In article <4l6ies$q1e@bcarh8ab.bnr.ca>, Kenny Chan <chankb@bnr.ca> wrote:
>
>Hi,
>
>I would like to get the process name from a core
>file. The following script runs okay on the 
>HP UNIX environment:
>
>strings core |sed -n -e 6p -e 6q
>
>However, it doesn't work on the DEC Alpha running
>OSF/1.
>
>I would like to "collect" the core file on
>my DEC Alpha and change its name to 
>core.<process name> and save it for 
>further investigation. Any hint on how to get the
>name?
>

If you just want the name of the executable that generated the core,
the command is:

file core

Or are you looking for something else?

--Tony
quan@cs.stanford.edu




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get the process name from a CORE file?
  1996-04-18  4:00 How to get the process name from a CORE file? Kenny Chan
  1996-04-19  4:00 ` Tony Quan
@ 1996-04-21  4:00 ` wgtn comb tax
  1996-04-24  4:00   ` Aidan Donnelly
  1 sibling, 1 reply; 5+ messages in thread
From: wgtn comb tax @ 1996-04-21  4:00 UTC (permalink / raw)


In article <4l6ies$q1e@bcarh8ab.bnr.ca>, Kenny Chan <chankb@bnr.ca> wrote:
> 
> Hi,
> 
> I would like to get the process name from a core
> file. The following script runs okay on the 
> HP UNIX environment:
> 
> strings core |sed -n -e 6p -e 6q
> 
> However, it doesn't work on the DEC Alpha running
> OSF/1.
> 
> I would like to "collect" the core file on
> my DEC Alpha and change its name to 
> core.<process name> and save it for 
> further investigation. Any hint on how to get the
> name?
> 
Have you tried crash?

-- 
.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get the process name from a CORE file?
  1996-04-21  4:00 ` wgtn comb tax
@ 1996-04-24  4:00   ` Aidan Donnelly
  0 siblings, 0 replies; 5+ messages in thread
From: Aidan Donnelly @ 1996-04-24  4:00 UTC (permalink / raw)


wgtn comb tax (taxis@atlantis.actrix.gen.nz) wrote:
: In article <4l6ies$q1e@bcarh8ab.bnr.ca>, Kenny Chan <chankb@bnr.ca> wrote:
: > 
: > Hi,
: > 
: > I would like to get the process name from a core
: > file. The following script runs okay on the 
: > HP UNIX environment:
: > 
: > strings core |sed -n -e 6p -e 6q
: > 
: > However, it doesn't work on the DEC Alpha running
: > OSF/1.
: > 
: > I would like to "collect" the core file on
: > my DEC Alpha and change its name to 
: > core.<process name> and save it for 
: > further investigation. Any hint on how to get the
: > name?
: > 
: Have you tried crash?

Just type 'file core'



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to get the process name from a CORE file?
  1996-04-19  4:00 ` Tony Quan
@ 1996-04-24  4:00   ` Timothy M. Wieman
  0 siblings, 0 replies; 5+ messages in thread
From: Timothy M. Wieman @ 1996-04-24  4:00 UTC (permalink / raw)


Tony Quan (quan@Xenon.Stanford.EDU) wrote:
> In article <4l6ies$q1e@bcarh8ab.bnr.ca>, Kenny Chan <chankb@bnr.ca> wrote:
> >
> >Hi,
> >
> >I would like to get the process name from a core
> >file. The following script runs okay on the 
> >HP UNIX environment:
> >
> >strings core |sed -n -e 6p -e 6q
> >
> >However, it doesn't work on the DEC Alpha running
> >OSF/1.
> >
> >I would like to "collect" the core file on
> >my DEC Alpha and change its name to 
> >core.<process name> and save it for 
> >further investigation. Any hint on how to get the
> >name?
> >

> If you just want the name of the executable that generated the core,
> the command is:

> file core

> Or are you looking for something else?

> --Tony
> quan@cs.stanford.edu

Or you can just do dbx some_executable core. eg "dbx /bin/ls core" will
give you an informational message telling you what program created the
core.  I didn't know you could use "file" to get the executable name --
pretty handy.

Tim
-- 
------------------------------------------------------------------------
Timothy M. Wieman  |  PACE Health Management Systems
Software Engineer  |  1025 Ashworth Rd. Suite 200    Voice: 515.222.1717
  timw@hces.com    |  West Des Moines, IA  50265     Fax:   515.222.1716



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1996-04-24  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-18  4:00 How to get the process name from a CORE file? Kenny Chan
1996-04-19  4:00 ` Tony Quan
1996-04-24  4:00   ` Timothy M. Wieman
1996-04-21  4:00 ` wgtn comb tax
1996-04-24  4:00   ` Aidan Donnelly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox