Python Forum
Long command with characters not working in Python on Oracle Linux 7
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Long command with characters not working in Python on Oracle Linux 7
#11
I'm not asking for the code to shlex.split. As I said, that is not the source of the problem. The problem is in list2cmdline, so we need the code to list2cmdline in order to fix the problem.

I don't know why you removed shlex.split. It turns the string into a list, and list2cmdline is clearly expecting a list. When you give it the unprocessed string, it is breaking down the string into each individual character, instead of the lexical elements that shlex.split is giving you.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python syntax in Linux St0rmcr0w 2 158 Jul-29-2021, 01:40 PM
Last Post: snippsat
  Encrypting Oracle Passwords / Python Library for That? bmccollum 1 296 Jun-11-2021, 07:59 PM
Last Post: Larz60+
  how to run linux command with multi pipes by python !! evilcode1 2 483 Jan-25-2021, 11:19 AM
Last Post: DeaD_EyE
  Extract continuous numeric characters from a string in Python Robotguy 2 550 Jan-16-2021, 12:44 AM
Last Post: snippsat
  Calling Oracle REST SQL from Python johnjacob 2 542 Nov-05-2020, 04:19 AM
Last Post: johnjacob
  where to get portable Python for Linux (Fedora)? python001 5 753 Nov-01-2020, 05:23 PM
Last Post: Larz60+
  Python win32api keybd_event: How do I input a string of characters? JaneTan 3 726 Oct-19-2020, 04:16 AM
Last Post: deanhystad
  Python to Oracle Conn Issue chvsnarayana 2 572 Sep-06-2020, 04:33 PM
Last Post: Larz60+
  Python in Linux environment on RPI kendias 22 5,984 Sep-05-2020, 03:04 AM
Last Post: K_Research
  Conversion of Oracle PL/SQL(packages, functions, procedures) to python modules. DivyaKumar 2 3,163 Jul-09-2020, 04:46 PM
Last Post: srikanth7482

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020