LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-17-2010, 08:27 AM   #1
zasikumar
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Smile How to find the Environment variables in a Binary File


Is there any way to find out the Environment variables during compilation time associated with the binary file, by using the binaryname.
I have one binary and i want to know what are the environmental variables which is used inside of the binary.
Thanks in advance...

Last edited by zasikumar; 12-17-2010 at 11:42 PM.
 
Old 12-17-2010, 08:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you can do a "strings" on a file, which might shed some light, but there's no formal way of knowing things like this.

btw, lets not use the silly big text again, huh? Oh and a please / thankyou would've been nice.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
to export environment variables in a file vinayakshinde1987 Linux - Newbie 9 10-28-2010 04:10 AM
exporting environment variables from a file? concoran Linux - Newbie 4 04-19-2008 05:49 PM
G++ environment variables, rerouting output, file listings and PIDs Kawahee Programming 7 09-19-2005 12:40 PM
how to refer to environment variables in an ant file irfanhab Programming 1 09-12-2005 06:15 AM
Need help setting right environment variables:configure scripts can't find libraries. z-vet Linux - Newbie 4 08-16-2004 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration