Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> How to know where a program is located by itself?
maekawa
Posted: Dec 15 2004, 04:00 PM
Quote Post


Newbie
*

Group: Members
Posts: 1
Member No.: 718
Joined: 15-December 04



Hello, I'm a begginer here and not good at programming in UNIX platform.

Now I'm making a C program on Hp-UX11i and the program needs to know
its absolute path when it is executed.

the current directory of the program is not enough,
because the program may change the current directory...
I need to know where it is located.

Can anybody tell me how to get such information or good tutorial site?

regards.

maekawa
PMEmail Poster
Top
fishsponge
Posted: Dec 20 2004, 10:19 AM
Quote Post


Administrator
********

Group: Admin
Posts: 679
Member No.: 1
Joined: 13-February 03



type "pwd" to get your current working directory.
PMEmail PosterUsers WebsiteICQAOLYahooMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Programming/Languages | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0536 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: Stainless Steel Footswitch :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum