Adonai
Adonai

Reputation: 129

Symbolic Link to folder not working as expected

so i want to start tomcat server, to do this i have to run a script whose path is the following:

/usr/local/Cellar/tomcat/9.0.6/libexec/bin/strartup.sh

Since it is tedious to remember this, i made a simbolic link:

tomcatsh/startup.sh

so with the ln command tomcatsh points to /usr/local/Cellar/tomcat/9.0.6/libexec/bin

There is a problem when i run the shortened version, it yelds an error saying that the startup.sh script couldn't find setclasspath.sh . this other script is in the same folder, and it is not missing, why doesn't startup find that script? What can i do to solve this problem?

Upvotes: 0

Views: 1282

Answers (1)

mdoflaz
mdoflaz

Reputation: 571

If previously that symlink is defined for the folder of the file, you have to call command with update parameter

ln -sf <file> <symlink>

rather than creation parameter

ln -s <file> <symlink>

Upvotes: 2

Related Questions