Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
- To: "MLUG Members" <EMAIL:PROTECTED>
- Subject: Re: [MLUG] shell script - find shell script parent directory?
- From: "Robert Citek" <EMAIL:PROTECTED>
- Date: Mon, 3 Mar 2008 09:18:16 -0600
- Delivery-date: Mon, 03 Mar 2008 09:18:45 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=GD8nOB7eQA4EDmZJwLftZTiwOybjBRJRnCvImcQ/klw=; b=maygmcQOydPzdtLsjCdZOgQXyKgD54GGwX4h7ovUh7r1Pk/zKVy+KNVJKU5SnKxI30haY/mFY5rch1dpIJ5YRGV2a85I3I07hxb/w+/QCGT+tTR77zBbqKU0E5RxUls1BrhBTB8nK1fhakqN1LIORN8USolxmcJTjhwCtyQkigw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=vqkvGm9pED7d4sFC8/1gNGjw29qOcCOwkXg8YpdhXLRnpiwANdFnpsHHB/Ifsqw2fryTO6lNtMgIdeSzncxUz7w5mXMtbQA+9pCtV/Ms2UydWDTFc/KIZ8/HOUC6DDrZWqUOUxt0CY/VuFIu2R5s/MHE350OgHXgfuIrJNldXd4=
- Envelope-to: EMAIL:PROTECTED
- In-reply-to: <EMAIL:PROTECTED>
- References: <EMAIL:PROTECTED>
- Reply-to: MLUG Members <EMAIL:PROTECTED>
- Sender: EMAIL:PROTECTED
On Sat, Mar 1, 2008 at 12:16 PM, Mike Miller <EMAIL:PROTECTED> wrote:
> We had a fairly long discussion about this on TCLUG (Twin Cities) and I
> thought you guys also would find it interesting and informative. It
> started with this question about bash scripting:
>
> I'm trying to find a variable or a command that will tell me where
> the currently executing script lives.
I'll take a stab:
$cat foo.sh
#!/bin/bash
echo $0
Although I suspect this is not what you are looking for.
Regards,
- Robert
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members