how to find directory

Discussion in 'Perl Misc' started by lucas, Nov 23, 2003.

  1. lucas

    lucas Guest

    I'm running my script from various places on the hard drive. How can I find
    the directory that the script actually sits.

    Say if my script is in /home/lucas/script
    and I run it from /home/lucas/dl/temp

    Is there a way to find the /home/lucas/script???

    thx
    --
    lucas
    -------------------------
    Perl Coder since 2001
    shift || die;
    -------------------------
    lucas, Nov 23, 2003
    #1
    1. Advertising

  2. lucas wrote:
    > I'm running my script from various places on the hard drive. How
    > can I find the directory that the script actually sits.
    >
    > Say if my script is in /home/lucas/script
    > and I run it from /home/lucas/dl/temp
    >
    > Is there a way to find the /home/lucas/script???


    You posted almost the same question a few hours ago, and you got
    guidance. Why did you start this new thread??

    --
    Gunnar Hjalmarsson
    Email: http://www.gunnar.cc/cgi-bin/contact.pl
    Gunnar Hjalmarsson, Nov 23, 2003
    #2
    1. Advertising

  3. lucas

    lucas Guest

    I appologized in the other thread. I was not sure it if it had posted,
    because I couldn't find it, and it was not in my 'Outbox'
    --
    lucas
    -------------------------
    Perl Coder since 2001
    shift || die;
    -------------------------
    lucas, Nov 23, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TJS
    Replies:
    1
    Views:
    503
    Eliyahu Goldin
    Jun 23, 2004
  2. Jack Wright
    Replies:
    1
    Views:
    460
    sonikchopra
    Apr 19, 2005
  3. Wybo Dekker
    Replies:
    1
    Views:
    340
    Yukihiro Matsumoto
    Nov 15, 2005
  4. vdvorkin
    Replies:
    0
    Views:
    389
    vdvorkin
    Feb 10, 2011
  5. vdvorkin
    Replies:
    3
    Views:
    797
    vdvorkin
    Feb 14, 2011
Loading...

Share This Page