Hello,
Running external process from Python script is not good in most cases.
It is better to use wrapper or binding. Search pypi.org for it.
I use shell (ksh,sed,awk,tr,mail etc) for simple tools, and Python for
something which is more complex.
Python is used for scripting in many modern linux distros,
but OpenBSD base system has Perl which was "defacto" script language in
**nix world since late 80th.
Package management is writtern with Perl.
Both languages have excelent package collections. Perl CPAN and Python pypi
have everything from tmux session management to webservers.
Some people also use Ruby which is somewhere between Perl and Python, and
also works well on OpenBSD.
I've even seen nodejs/javascript used for system scripting.
There is no reason to use C for "onetime tools" except cases when no other
API exist.
No comments:
Post a Comment