Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 208295  / 3 Years ago, thu, july 22, 2021, 10:44:09

I'm trying to run the following command on bash:



./home/abcdef/Desktop/jikesrvm/dist/prototype_x86_64-linux/rvm


which is giving me a



bash: ./home/abcdef/Desktop/jikesrvm/dist/production_x86_64-linux/rvm: No such file or directory


rvm is a bash file, and it does run ok when I attempt to run it from its own folder (production_x86_64-linux). It works also fine if I attempt to run it when opening the terminal in its parent folder, for instance, or even its parent-parent folder.



I've run it over with dos2unix just in case and I've also checked its executing permissions, which seem to be fine.



What am I missing here?


More From » bash

 Answers
0

you can run a bash script by using the following command



bash <location of the script file>


in your case



bash /home/abcdef/Desktop/jikesrvm/dist/production_x86_64-linux/rvm


it will work



what basically the . means is your current directory location.



if you are under your <user> folder then try doing this



./Desktop/jikesrvm/dist/production_x86_64-linux/rvm


it will work but first you should make the file executable using the following command



chmod +x ~/Desktop/jikesrvm/dist/production_x86_64-linux/rvm

[#20462] Friday, July 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
utonmbo

Total Points: 134
Total Questions: 104
Total Answers: 118

Location: Argentina
Member since Mon, Jan 3, 2022
2 Years ago
;