Meaningless Drivel is fun!
The moose likes Linux / UNIX and the fly likes Symlink question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Symlink question" Watch "Symlink question" New topic

Symlink question

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 629
Hi All,

I have dir1 and dir2. I created a sym link for scripts folder which is in dir2 in dir1. Now, I am unable to access the scripts in dir2 using the symlink in my dir1.

say the script name is How do I run it?


Be Humble... Be Nice.
Marco Ehrentreich
best scout

Joined: Mar 07, 2007
Posts: 1294

Hi Arjun,

it depends from where you want to start the script ;-)

If you are in the same directory as the script you have to type ./ which is probably your problem. Besides this you can always give the absolute path name to the script (starting from the root /). Or you can use relative paths like ../../scripts/

I agree. Here's the link:
subject: Symlink question
It's not a secret anymore!