What is the best solution when use soft link?











up vote
0
down vote

favorite












I have a tool.
This tool extracts an executable file (called binA) and then this tool call ./binA
binA file is in where is the same tool's location.
I make a soft link to this tool run anywhere:



ln -s /home/user/Desktop/tool /usr/local/bin


This tool extracted successfully but can't call ./binA
I tried call ln -s /home/user/Desktop/tool /usr/local/bin this tool can't extract binA file.



What is the best solution for this problem?










share|improve this question









New contributor




kien bui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Possible solutions to help: askubuntu.com/questions/108771/…
    – Terrance
    Nov 20 at 3:21










  • Sorry, I know difference between them but how to resolve my problem, either soft link and hard link both don't resolve this case.
    – kien bui
    Nov 20 at 6:34










  • I used a soft link but I can't call ./binA
    – kien bui
    Nov 20 at 6:37






  • 2




    Did you make your file binA executable, so that you can run it, when you call it directly from the directory, where is is located: ./binA ? In that case a symbolic link to it should also make it run. An alternative is to move the file binA to a directory in PATH, for example /usr/local/bin
    – sudodus
    Nov 20 at 7:53















up vote
0
down vote

favorite












I have a tool.
This tool extracts an executable file (called binA) and then this tool call ./binA
binA file is in where is the same tool's location.
I make a soft link to this tool run anywhere:



ln -s /home/user/Desktop/tool /usr/local/bin


This tool extracted successfully but can't call ./binA
I tried call ln -s /home/user/Desktop/tool /usr/local/bin this tool can't extract binA file.



What is the best solution for this problem?










share|improve this question









New contributor




kien bui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1




    Possible solutions to help: askubuntu.com/questions/108771/…
    – Terrance
    Nov 20 at 3:21










  • Sorry, I know difference between them but how to resolve my problem, either soft link and hard link both don't resolve this case.
    – kien bui
    Nov 20 at 6:34










  • I used a soft link but I can't call ./binA
    – kien bui
    Nov 20 at 6:37






  • 2




    Did you make your file binA executable, so that you can run it, when you call it directly from the directory, where is is located: ./binA ? In that case a symbolic link to it should also make it run. An alternative is to move the file binA to a directory in PATH, for example /usr/local/bin
    – sudodus
    Nov 20 at 7:53













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a tool.
This tool extracts an executable file (called binA) and then this tool call ./binA
binA file is in where is the same tool's location.
I make a soft link to this tool run anywhere:



ln -s /home/user/Desktop/tool /usr/local/bin


This tool extracted successfully but can't call ./binA
I tried call ln -s /home/user/Desktop/tool /usr/local/bin this tool can't extract binA file.



What is the best solution for this problem?










share|improve this question









New contributor




kien bui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have a tool.
This tool extracts an executable file (called binA) and then this tool call ./binA
binA file is in where is the same tool's location.
I make a soft link to this tool run anywhere:



ln -s /home/user/Desktop/tool /usr/local/bin


This tool extracted successfully but can't call ./binA
I tried call ln -s /home/user/Desktop/tool /usr/local/bin this tool can't extract binA file.



What is the best solution for this problem?







symbolic-link






share|improve this question









New contributor




kien bui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




kien bui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 20 at 6:35





















New contributor




kien bui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 20 at 3:15









kien bui

1012




1012




New contributor




kien bui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





kien bui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






kien bui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    Possible solutions to help: askubuntu.com/questions/108771/…
    – Terrance
    Nov 20 at 3:21










  • Sorry, I know difference between them but how to resolve my problem, either soft link and hard link both don't resolve this case.
    – kien bui
    Nov 20 at 6:34










  • I used a soft link but I can't call ./binA
    – kien bui
    Nov 20 at 6:37






  • 2




    Did you make your file binA executable, so that you can run it, when you call it directly from the directory, where is is located: ./binA ? In that case a symbolic link to it should also make it run. An alternative is to move the file binA to a directory in PATH, for example /usr/local/bin
    – sudodus
    Nov 20 at 7:53














  • 1




    Possible solutions to help: askubuntu.com/questions/108771/…
    – Terrance
    Nov 20 at 3:21










  • Sorry, I know difference between them but how to resolve my problem, either soft link and hard link both don't resolve this case.
    – kien bui
    Nov 20 at 6:34










  • I used a soft link but I can't call ./binA
    – kien bui
    Nov 20 at 6:37






  • 2




    Did you make your file binA executable, so that you can run it, when you call it directly from the directory, where is is located: ./binA ? In that case a symbolic link to it should also make it run. An alternative is to move the file binA to a directory in PATH, for example /usr/local/bin
    – sudodus
    Nov 20 at 7:53








1




1




Possible solutions to help: askubuntu.com/questions/108771/…
– Terrance
Nov 20 at 3:21




Possible solutions to help: askubuntu.com/questions/108771/…
– Terrance
Nov 20 at 3:21












Sorry, I know difference between them but how to resolve my problem, either soft link and hard link both don't resolve this case.
– kien bui
Nov 20 at 6:34




Sorry, I know difference between them but how to resolve my problem, either soft link and hard link both don't resolve this case.
– kien bui
Nov 20 at 6:34












I used a soft link but I can't call ./binA
– kien bui
Nov 20 at 6:37




I used a soft link but I can't call ./binA
– kien bui
Nov 20 at 6:37




2




2




Did you make your file binA executable, so that you can run it, when you call it directly from the directory, where is is located: ./binA ? In that case a symbolic link to it should also make it run. An alternative is to move the file binA to a directory in PATH, for example /usr/local/bin
– sudodus
Nov 20 at 7:53




Did you make your file binA executable, so that you can run it, when you call it directly from the directory, where is is located: ./binA ? In that case a symbolic link to it should also make it run. An alternative is to move the file binA to a directory in PATH, for example /usr/local/bin
– sudodus
Nov 20 at 7:53















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






kien bui is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094405%2fwhat-is-the-best-solution-when-use-soft-link%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








kien bui is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















kien bui is a new contributor. Be nice, and check out our Code of Conduct.













kien bui is a new contributor. Be nice, and check out our Code of Conduct.












kien bui is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094405%2fwhat-is-the-best-solution-when-use-soft-link%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei