where a symlink points to

Alexey Kutin akutin-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Mon Jun 21 01:40:10 UTC 2004


Hi everyone,

Is where a way to find a real path where a symlink leads to? Say, I have
/www/domainx.com -> /usr/home/domainx.com

how to get /usr/home/domainx.com from an application? I'm looking for
a solution for Perl or C code. I mean a better one than parsing output of
'ls -l' ;)

Good luck,
Alex


--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list