Skip to contentSkip to conversation

getting a programs ENV via ptrace ?

DISCUSSION Soeren Sonnenburg 8 participants 9 messages Apr 29, 2002 – Apr 30, 2002

lore
Share & tools
lore
#0 lore raw

Hi...

I am looking for a way of getting the environment variables of a running process.

Is this possible by using the ptrace interface somehow ?

Thanks for any suggestions / pointers are welcome !

Soeren.

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

" " == Soeren Sonnenburg <[email protected]> writes:

> Hi... I am looking for a way of getting the environment > variables of a running process.

cat /proc/<pid>/environ | tr '\0' '\n'

Cheers,
Trond

#2 lore raw
In reply to Soeren Sonnenburg
Quoted 2 lines · Soeren Sonnenburg

I am looking for a way of getting the environment variables of a running process.

/proc/<pid>/environ

Signature · 2 lines
Russell King ([email protected])                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html
#3 lore raw
In reply to Soeren Sonnenburg
Quoted 8 lines · * Soeren Sonnenburg ([email protected]) wrote:

Hi...

I am looking for a way of getting the environment variables of a running process.

Is this possible by using the ptrace interface somehow ?

Thanks for any suggestions / pointers are welcome !

What about just using /proc/[pid]/environ?

cheers,
-chris

#4 lore raw
In reply to Soeren Sonnenburg
Quoted 3 lines

I am looking for a way of getting the environment variables of a running process.
Is this possible by using the ptrace interface somehow ?

Take a look at the code to ps

#5 lore raw

Kernel 2.4.x and ASUS A7M266-D

Hi,

I am about to build a new server and I am looking at a suitable mainboard. I was about to choose the ASUS A7M266-D when I was reading on Alan's page that he had some fun with this board and now I'm not sure if it will be stable enough in the current state.

Does anybody have some experiences with this board, good or bad ? And will I get a stable system with it ?

Thanks a lot,

Marco

#6 lore raw

Re: Kernel 2.4.x and ASUS A7M266-D

We're having good luck with the Tyan 2466N-4M boards and dual athlon MPs. Someone else has posted that they're running fine with the asus board you mention as well.

Quoted 12 lines · Marco Schwarz

Hi,

I am about to build a new server and I am looking at a suitable mainboard. I was about to choose the ASUS A7M266-D when I was reading on Alan's page that he had some fun with this board and now I'm not sure if it will be stable enough in the current state.

Does anybody have some experiences with this board, good or bad ? And will I get a stable system with it ?

Thanks a lot,

Quoted 7 lines

Marco

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

****************************************************
Nicolae P. Costescu, Ph.D. / Senior Developer Stronghold Technologies
46040 Center Oak Plaza, Suite 160 / Sterling, Va 20166
Tel: 571-434-1472 / Fax: 571-434-1478

#7 lore raw

Re: Kernel 2.4.x and ASUS A7M266-D

In reply to Marco Schwarz

Marco,

We are using 2.4.18 with that board and it works fine.

Just have to choose MPS1.1 in the BIOS...

Dave

Quoted 12 lines · Marco Schwarz

Hi,

I am about to build a new server and I am looking at a suitable mainboard. I was about to choose the ASUS A7M266-D when I was reading on Alan's page that he had some fun with this board and now I'm not sure if it will be stable enough in the current state.

Does anybody have some experiences with this board, good or bad ? And will I get a stable system with it ?

Thanks a lot,

Quoted 7 lines

Marco

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

/-----------------------------------
David Shirley
System's Administrator
Computer Science - Curtin University
(08) 9266 2986
-----------------------------------/

#8 lore raw

Re: Kernel 2.4.x and ASUS A7M266-D

Quoted 2 lines

We are using 2.4.18 with that board and it works fine. Just have to choose MPS1.1 in the BIOS...

Ditto.

I had great pain with the bios, and the manual but the board itself is really nice and I'm very happy with that part of it.