I have decided to rewrite my first Python project in Python (not many in all). The reason for this is that despite being quite fluent in Bash though, I think that this is some old language and since our system is in the first stage of its development, I think switching to Python is now the right thing to do.
Should the scripts always be written in Bash? For example, we have an init.d daemon script - is it ok to use Python? We run Santos.
Thank you.
In this sense it is ok that you can do it. But scripts in /etc/init.d
are usually required to load config data and some functions (for example, on the console, the green OK
to print ) Which are difficult to emulate in Python.
Then try to change those who understand (i.e., are complex arguments). If you need job control (start / stop procedures), bash is better suited for Python.