Re: [OT] Apology (was Re: Determinate the directory whithin a script)

2006-08-24 Thread Michelle Konzack
Am 2006-08-18 05:22:12, schrieb Mumia W.: > Sorry Michelle. Oh... > It's too bad this isn't a news-server that supports cancels > because I would've canceled my post. > > We all contribute in our own ways with the resources we have. > You are in the military; you don't have the freedom to do

[OT] Apology (was Re: Determinate the directory whithin a script)

2006-08-18 Thread Mumia W.
On 08/11/2006 12:42 PM, Mumia W. wrote: On 07/30/2006 03:39 PM, Michelle Konzack wrote: LOCATION=$(dirname $(readlink /proc/$$/exe)) Greetings Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant Michelle Konzack, it's August 11, 2006, and yo

Re: Determinate the directory whithin a script

2006-08-11 Thread Mumia W.
On 07/30/2006 03:39 PM, Michelle Konzack wrote: LOCATION=$(dirname $(readlink /proc/$$/exe)) Greetings Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant Michelle Konzack, it's August 11, 2006, and you posted a message you created twelve da

Re: Determinate the directory whithin a script

2006-08-11 Thread Michelle Konzack
LOCATION=$(dirname $(readlink /proc/$$/exe)) Greetings Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant ##

Re: Determinate the directory whithin a script

2006-06-19 Thread Cameron Hutchison
Paolo Pantaleo wrote: >I have a script in something like >/media/sda1/backup/script.sh >since sda1 could be also sda2 or anything, I want to determintate at >run-time what is the directory in which the script is located, how can >I do? Here's an unportable implementation dependent way: script_

Re: Determinate the directory whithin a script

2006-06-19 Thread Nicolas KOWALSKI
On 6/18/06, Paolo Pantaleo <[EMAIL PROTECTED]> wrote: I have a script in something like /media/sda1/backup/script.sh since sda1 could be also sda2 or anything, I want to determintate at run-time what is the directory in which the script is located, how can I do? pwd doesn't work, since I cuold

Re: Determinate the directory whithin a script

2006-06-19 Thread Hal Vaughan
On Monday 19 June 2006 03:43, Erik Steffl wrote: > Paolo Pantaleo wrote: > > 2006/6/18, Paolo Pantaleo <[EMAIL PROTECTED]>: > >> I have a script in something like > >> > >> /media/sda1/backup/script.sh > >> > >> since sda1 could be also sda2 or anything, I want to determintate > >> at run-time what

Re: Determinate the directory whithin a script

2006-06-19 Thread Nyizsnyik Ferenc
On Mon, 2006-06-19 at 09:18 +0200, Paolo Pantaleo wrote: > 2006/6/18, Paolo Pantaleo <[EMAIL PROTECTED]>: > > I have a script in something like > > > > /media/sda1/backup/script.sh > > > > since sda1 could be also sda2 or anything, I want to determintate at > > run-time what is the directory in whi

Re: Determinate the directory whithin a script

2006-06-19 Thread Richard
On 19/06/06, Paolo Pantaleo <[EMAIL PROTECTED]> wrote: 2006/6/18, Paolo Pantaleo <[EMAIL PROTECTED]>: > I have a script in something like > > /media/sda1/backup/script.sh > > since sda1 could be also sda2 or anything, I want to determintate at > run-time what is the directory in which the script

Re: Determinate the directory whithin a script

2006-06-19 Thread Erik Steffl
Paolo Pantaleo wrote: 2006/6/18, Paolo Pantaleo <[EMAIL PROTECTED]>: I have a script in something like /media/sda1/backup/script.sh since sda1 could be also sda2 or anything, I want to determintate at run-time what is the directory in which the script is located, how can I do? pwd doesn't wor

Re: Determinate the directory whithin a script

2006-06-19 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paolo Pantaleo wrote: > 2006/6/18, Paolo Pantaleo <[EMAIL PROTECTED]>: >> I have a script in something like >> >> /media/sda1/backup/script.sh >> >> since sda1 could be also sda2 or anything, I want to determintate at >> run-time what is the directory

Re: Determinate the directory whithin a script

2006-06-19 Thread Paolo Pantaleo
2006/6/18, Paolo Pantaleo <[EMAIL PROTECTED]>: I have a script in something like /media/sda1/backup/script.sh since sda1 could be also sda2 or anything, I want to determintate at run-time what is the directory in which the script is located, how can I do? pwd doesn't work, since I cuold call t

Re: Determinate the directory whithin a script

2006-06-18 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paolo Pantaleo wrote: > I have a script in something like > > /media/sda1/backup/script.sh > > since sda1 could be also sda2 or anything, I want to determintate > at run-time what is the directory in which the script is located, > how can I do? > >

Re: Determinate the directory whithin a script

2006-06-18 Thread Christoph Nenning
The command with which the skript was invoked is stored in $0. That might be what you need. Am Sonntag, 18. Juni 2006 19:45 schrieb Paolo Pantaleo: > I have a script in something like > > /media/sda1/backup/script.sh > > since sda1 could be also sda2 or anything, I want to determintate at > ru

Determinate the directory whithin a script

2006-06-18 Thread Paolo Pantaleo
I have a script in something like /media/sda1/backup/script.sh since sda1 could be also sda2 or anything, I want to determintate at run-time what is the directory in which the script is located, how can I do? pwd doesn't work, since I cuold call the script from some other direcotry Thnx PAolo