Python Forum
Difference between Python's os.system and Perl's system command
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Difference between Python's os.system and Perl's system command
Then use
full_cmd = r'echo -e \\a\b\c\d\Test\H_program.exe "0,0,2019,0,M,\\a\b\c\d\Test\H_test.bin,,\\a\b\c\d\Test\, \\a\b\c\d\Test\Test\e\f\g_test.csv,0,"'
Not required
Try without the shlex.split() part, that is to say, shell=True). For some reason the shlex.split() doesn't behave well with your \\a\b\c...
Not required

(Dec-02-2019, 02:26 PM)Gribouillis Wrote: It is meaningless to try things randomly. Find the command that works in a Cmd window first, outside of any scripting language.

I found the problem. Long story short, it was an extra blank character in the Python script.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Solve system of equations Sancho_Pansa 19 489 Oct-27-2020, 08:15 AM
Last Post: Sancho_Pansa
  function call at defined system time? Holon 5 335 Oct-06-2020, 03:58 PM
Last Post: snippsat
  Solve a system of linear equations with binary variables lopeslimagabriel 3 251 Sep-24-2020, 07:09 AM
Last Post: scidam
  system of inequalities in python fiel 1 247 Sep-12-2020, 06:07 AM
Last Post: DPaul
  How could i change the python interpreter path of os.system() 12019202386 2 272 Sep-02-2020, 06:58 AM
Last Post: DeaD_EyE
  python 3 find difference between 2 files pd007 2 403 May-22-2020, 01:16 AM
Last Post: Larz60+
  Iris-recognition System OpenCV | Help to get start Hassibayub 0 268 Apr-28-2020, 09:19 PM
Last Post: Hassibayub
  Login and Register system finndude 1 494 Apr-24-2020, 10:05 PM
Last Post: deanhystad
  Make nested system directories based on an unsorted list? koebi 0 352 Mar-25-2020, 01:14 PM
Last Post: koebi
  File system representation in a data structure Alfalfa 1 413 Dec-18-2019, 01:56 AM
Last Post: Alfalfa

Forum Jump:

User Panel Messages

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