wood burning stoves 2.0*
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: 627
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 runcodes.pl How do I run it?


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

Joined: Mar 07, 2007
Posts: 1282

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 ./runcodes.pl 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/runcodes.pl.

I agree. Here's the link: http://aspose.com/file-tools
subject: Symlink question