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
#11
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\H_test.xyz, \\a\b\c\d\Test\Test\e\f\g_test.csv,0,"'
Reply
#12
Not required
Reply
#13
Try without the shlex.split() part, that is to say subprocess.call(full_cmd, shell=True). For some reason the shlex.split() doesn't behave well with your \\a\b\c...
Reply
#14
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.

Thanks,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Accessing item in the system tray on Windows 11 mariox 0 210 Aug-22-2024, 05:11 PM
Last Post: mariox
  System showing np.int64(xxx) as output leea2024 3 1,292 Aug-10-2024, 10:55 AM
Last Post: leea2024
  how to find difference between fake driving license or real using python? pjaymn 5 3,904 Jun-14-2024, 07:01 AM
Last Post: Pedroski55
  FileNotFoundError: [WinError 2] The system cannot find the file specified NewBiee 2 2,244 Jul-31-2023, 11:42 AM
Last Post: deanhystad
  What is the difference between Command Prompt and Sublimes yaoyao22 1 927 Jul-09-2023, 02:56 PM
Last Post: snippsat
  Os.system("shutdown"); command not found cosmin1805 4 2,360 Nov-13-2022, 02:07 PM
Last Post: cosmin1805
  [split] Please help with menu system dvejsa 4 1,768 Sep-13-2022, 08:01 PM
Last Post: dvejsa
  Alarm system with state, class, enum. Frankduc 0 1,557 May-04-2022, 01:26 PM
Last Post: Frankduc
  simulation of alarm system Frankduc 6 2,280 Apr-21-2022, 03:45 PM
Last Post: Frankduc
  Python Flask Realtime system printout (console) ffmpeg jttolleson 3 3,539 Apr-18-2022, 06:39 PM
Last Post: jttolleson

Forum Jump:

User Panel Messages

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