On Sun, Nov 02, 2003 at 09:01:55AM +0200, Shai Bentin wrote:
Here's the whole story. I have a java application which needs to start from
the directory where it is as a working directory. The problem is that this
application can be installed by the user anywhere on his system. So I need a
On Sun, 2 Nov 2003, Muli Ben-Yehuda wrote:
On Sun, Nov 02, 2003 at 09:01:55AM +0200, Shai Bentin wrote:
Here's the whole story. I have a java application which needs to start from
the directory where it is as a working directory. The problem is that this
application can be installed by
On Sun, Nov 02, 2003 at 03:50:25AM -0500, Behdad Esfahbod wrote:
APP=`which app`
DIR=`dirname $APP`
cd $DIR echo $DIR $APP
Unfortunately fails almost all the time, unless APP is something
like X or Java or some huge other thing that has its own share in
$PATH.
Huh? if app is a
On Sun, 2 Nov 2003, Muli Ben-Yehuda wrote:
On Sun, Nov 02, 2003 at 03:50:25AM -0500, Behdad Esfahbod wrote:
APP=`which app`
DIR=`dirname $APP`
cd $DIR echo $DIR $APP
Unfortunately fails almost all the time, unless APP is something
like X or Java or some huge other thing that
On Sun, Nov 02, 2003 at 04:27:14AM -0500, Behdad Esfahbod wrote:
An standalone executable works, but I can't see why would you
want to set your CWD to /usr/bin. It happens many times to me to
That's what the original poster wanted. Don't ask me why, I'm a big
proponent of letting people shoot
On Sun, 2 Nov 2003, Muli Ben-Yehuda wrote:
On Sun, Nov 02, 2003 at 04:27:14AM -0500, Behdad Esfahbod wrote:
An standalone executable works, but I can't see why would you
want to set your CWD to /usr/bin. It happens many times to me to
That's what the original poster wanted. Don't ask me
On Sun, Nov 02, 2003 at 05:17:35AM -0500, Behdad Esfahbod wrote:
Not quite happy. I hope if you had comments on my last note,
about hard-wiring paths in configure time. It's really a big
question for me, where to hard wire paths? I'm to write a suite
If you can, don't hardwire them at all.
On Sun, 2 Nov 2003, Muli Ben-Yehuda wrote:
On Sun, Nov 02, 2003 at 05:17:35AM -0500, Behdad Esfahbod wrote:
Not quite happy. I hope if you had comments on my last note,
about hard-wiring paths in configure time. It's really a big
question for me, where to hard wire paths? I'm to write
On Sun, Nov 02, 2003 at 05:38:55AM -0500, Behdad Esfahbod wrote:
I'm pretty new to Python. Do you have another line about this
last piece?
I don't know much about it, just used it to build and install some
python modules. More info (hopefully relevant) here:
Muli Ben-Yehuda wrote:
untested, but should work, modulu error handling:
APP=`which app`
DIR=`dirname $APP`
cd $DIR echo $DIR $APP
etc
I thoough the standard way to get APP in the context of the snippet
above is to use $0, which as far as I remember is what Sun's java
startup scripts use (no
On Sun, Nov 02, 2003 at 08:40:54PM +0200, [EMAIL PROTECTED] wrote:
Muli Ben-Yehuda wrote:
untested, but should work, modulu error handling:
APP=`which app`
DIR=`dirname $APP`
cd $DIR echo $DIR $APP
etc
I thoough the standard way to get APP in the context of the snippet
above is
11 matches
Mail list logo