AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Getting pathname of executable on xlC AIX

    Posted Wed November 03, 2010 03:23 AM

    Originally posted by: SystemAdmin


    Hi,

    Is there any way to get pathname of executable in C/C++ program on xlC AIX - not via argv[0].

    Something like getexecname() on Solaris.

    http://docs.sun.com/app/docs/doc/816-5168/6mbb3hrb1

    Thanks
    #AIX-Forum


  • 2.  Re: Getting pathname of executable on xlC AIX

    Posted Wed November 03, 2010 04:51 AM

    Originally posted by: Srikrishan


    Never used it..but you can try using loadquery(L_GETINFO,..).

    -Sri
    #AIX-Forum


  • 3.  Re: Getting pathname of executable on xlC AIX

    Posted Mon November 08, 2010 06:19 AM
      |   view attached

    Originally posted by: SystemAdmin


    See an attachment
    #AIX-Forum

    Attachment(s)



  • 4.  Re: Getting pathname of executable on xlC AIX

    Posted Tue November 09, 2010 12:40 AM
      |   view attached

    Originally posted by: SystemAdmin


    Another program can be seen in attachment.
    #AIX-Forum

    Attachment(s)