0

Background: New to python.

I have a high security client. Anything on the O/S must go through a lengthy (nearly impossible in some cases) process to be approved by the IA department.

I want to convert my bash scripts to python2:

  1. I don't want to ask to install python3
  2. I don't want to ask to install cx_Oracle

In bash I could do something like this:

echo "select user from dual;"|${SQLPLUS} > ${TEMPFILE}

Is there a way to do something similar in python2 with the basic tools that are part of RHEL7?

8
  • python2 will be a security risk in a few months ( github.com/python/devguide/pull/344 ) . Having a high security client and rollout python2 is not the correct way to do Commented Nov 5, 2019 at 14:54
  • @EchoMike444 Interesting. So you think I can make a case for python3? Commented Nov 5, 2019 at 15:05
  • and RHEL 7 is a little too old for my taste ... access.redhat.com/articles/3078#RHEL8 Commented Nov 5, 2019 at 15:11
  • you have already oracle deployed , what is the issue to install cx_oracle ? you must ask your client the full list of sofware you can use ? Commented Nov 5, 2019 at 15:13
  • @EchoMike444 The issue is speed. Rush to get something done vs the months it will take to get it approved. IA will have to go through cx_oracle looking for whatever they look for... EDIT: cx_oracle isn't on the very short list of SW Commented Nov 5, 2019 at 16:41

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.