Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ksa@lnxcron $ cat ~ksa/bin/python-scl-test.py
#!/usr/bin/scl enable rh-python36 -- python
from platform import python_version
print('Hello, this is Python', python_version())
ksa@lnxcron $ ~ksa/bin/python-scl-test.py
Hello, this is Python 3.6.3

 Here is an example of how to write a script for a cronjob which enables a Software Collections (mysql) and also accepts parameters:

[ksa@mysql01b ~]$ cat ~ksa/t.sh
#!/usr/bin/scl enable rh-mysql57 -- bash
echo hi, you entered $1 and this is the mysql version:
mysql --version

[ksa@mysql01b ~]$ ~ksa/t.sh Karl
hi, you entered Karl and this is the mysql version:
mysql Ver 14.14 Distrib 5.7.24, for Linux (x86_64) using EditLine wrapper

You can see that it accepts the parameter to the script, and also that the mysql 5.7 SCL is enabled.  

...


The Red Hat Developer Toolset (DTS) is intended to give developers access to updated compilers and tools for C and C++ development.

...

https://access.redhat.com/support/policy/updates/rhscl
https://access.redhat.com/support/policy/updates/dts/
https://www.softwarecollections.org/