Answer the question
In order to leave comments, you need to log in
What are console utilities written for under linux?
In general, I came up with the idea of writing a console translator based on the Yandex API, wrote a prototype in Python. But the problem is that I would like the ability to install the program on linux distributions that do not have Python.
How are things like this usually implemented? For example, how to make the program available for execution from any folder? For example, like curl/wget, we can run them from any folder by simply writing wget in the console.
And if you write in C / C ++, advise a normal one for working with the network. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
On anything.
In order for the "program to be available for execution from any folder", it (or a link to it) simply must lie in any of the folders specified in the PATH environment variable. (and this has nothing to do with the programming language, etc.)
PS Where did you get the Linux distribution without python? What prevents you from installing python there?
Write on anything, python is quite suitable for this task. Then just put it in PATH, and specify the python in the dependencies when you build packages for distros. Well, or in the makefile you will indicate if you will distribute in the form of sorts.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question