Mailinglist Archive: opensuse (3104 mails)

< Previous Next >
[SLE] programming question



ok i'm desperate and kan't find an answer.

Does anyone know how 2 get the directory of the programming currently running.
ie, fubar (the app) is stored in /usr/bin
i do:
cd /
fubar

output should be "/usr/bin"

how would i do this. I've tried everything i can think of and everything in my
books and i still can't get it to work. btw it's in c


--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/


< Previous Next >