Page 1 of 1

Possibility to get the name of the linked program in Linux

Posted: Sat Aug 08, 2009 1:32 pm
by infratec
Hi PureBASIC coders,

I use PB also in Linux. Now I want to write a program which includes several functionalities, depending on the name of the program.
To do this I created different symbolic links to my program (as usual).

But, unfortunately, I was not able to get the name of the links.

(See http://www.purebasic.fr/english/viewtopic.php?p=294862)

Maybe an optional parameter for ProgramFilename() will do the job.

Bernd

Posted: Sat Aug 08, 2009 11:11 pm
by jpd
Hi Infratec,

here a interesting link that describe the Pathname Lookup
and some interesting consideration about Symbolic Link.

Pathname Lookup

hope this help you to pinpoint on the right direction.

Best
jpd