From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,85f4fa1d859a927c,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1994-10-06 23:09:00 PST Newsgroups: comp.os.linux.announce Path: bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.kei.com!travelers.mail.cornell.edu!cornell!bounce-bounce From: Joerg.Scheurich@rus.uni-stuttgart.de (MUFTI) Subject: selfdir released Message-ID: Followup-To: comp.os.linux.misc Keywords: selfdir pathindependend programpackages C routine Sender: mdw@cs.cornell.edu (Matt Welsh) Reply-To: Joerg.Scheurich@rus.uni-stuttgart.de (MUFTI) Organization: Comp.Center (RUS), U of Stuttgart, FRG Date: Thu, 6 Oct 1994 15:06:32 GMT Hi ! I wrote a C-routine for Linux, which search the path of a started binary. This is useful, if a binary should automatical seach it's datafiles in a other subdirectory via a relative path. Cause the routine follows all filelinks, the binary can be installed everywhere, (if you don't copy it to the destination and use a filelink ( ln(1) ) instead. Programpackages using this method are full pathindepend and it's easy to spread them via NFS over a large number of workstation(-administrator)s. I'm sure, the routine can also ported to other Unix's. so long MUFTI =========== lsm document for selfdir ======================================= Begin3 Title: selfdir Version: 04.10.94 Entered-date: 05.10.94 Description: C-routine to get the path of a started binary This is useful, if a binary should automatical seach it's datafiles. Such programpackages are full pathindepend and it's easy to spread them via NFS over a large number of workstation(-administrator)s Keywords: selfdir pathindependend programpackages argv[0] PATH Author: scheurich@rus.uni-stuttgart.de (MUFTI (Dipl. Phys. J. Scheurich)) Maintained-by: scheurich@rus.uni-stuttgart.de (MUFTI (Dipl. Phys. J. Scheurich)) Primary-site: ftp.rus.uni-stuttgart.de /pub/unix/systems/linux/local/libs 11kb selfdir.tgz Alternate-site: sunsite.unc.edu /pub/Linux/???? 11kb selfdir.tgz Original-site: Platforms: Copying-policy: GPL End -- Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu Be sure to include Keywords: and a short description of your software.