> -----Original Message----- > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On > Behalf Of Fargusson.Alan > Sent: Thursday, May 29, 2008 2:48 PM > To: [email protected] > Subject: Re: BASH: where did a script execute from? > > I get full pathnames when I do this. You may have a > different /bin/sh then I do. My /bin/sh is bash. > > It is notoriously difficult to determine the pathname of a > program from within the program. The exec() API allows > anything to be passed as argv[0], so it is possible for a > programmer to exec() a program with a completely misleading argv[0].
Rats. Oh well, I'll just "hard code" the directory in the shell script. -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology The information contained in this e-mail message may be privileged and/or confidential. It is for intended addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited and could, in certain circumstances, be a criminal offense. If you have received this e-mail in error, please notify the sender by reply and delete this message without copying or disclosing it. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
