Answer the question
In order to leave comments, you need to log in
What is the command to run a ruby script on linux regardless of location?
Let's say test.rb is in one folder now, and tomorrow in another, but the command to run should be the same. Is this possible?
If possible, then tell me on windows, thanks.
Answer the question
In order to leave comments, you need to log in
the file lies in the same place where it is executed.
for shoving between other places, a copy is used in the form of a hard or soft link.
You have:
/foo/main.rb
/bar/main.rb
Give more details:
- Are the folder names with the file location random or is there some kind of dependency?
- Are there other similar files (in principle, you can dodge and find the required file by name and checksum / hash).
- And most importantly, why such perversions?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question