Python Forum
Passing string args to Popen
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing string args to Popen
#1
Hi
I want to execute this command via Popen in my python script

Quote: diff --old-line-format="" --new-line-format="%5dn> %L" --unchanged-line-format="" /tmp/tmp923MGb/base.php /tmp/tmp923MGb/Test2.php

But cannot seem to get the syntax right - I have tried many combinations.

I would be grateful if someone could show me the way

Many thanks
Reply


Messages In This Thread
Passing string args to Popen - by CardBoy - Jan-15-2018, 05:30 PM
RE: Passing string args to Popen - by Gribouillis - Jan-15-2018, 06:05 PM
RE: Passing string args to Popen - by CardBoy - Jan-16-2018, 08:46 AM
RE: Passing string args to Popen - by Gribouillis - Jan-16-2018, 09:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to compare two parameters in a function that has *args? Milan 4 1,283 Mar-26-2023, 07:43 PM
Last Post: Milan
  Passing string functions as arguments Clunk_Head 3 1,268 Jun-15-2022, 06:00 AM
Last Post: Gribouillis
  *args implementation and clarification about tuple status amjass12 10 4,073 Jul-07-2021, 10:29 AM
Last Post: amjass12
  [SOLVED] Good way to handle input args? Winfried 2 2,086 May-18-2021, 07:33 PM
Last Post: Winfried
  Two Questions, *args and //= beginner721 8 3,522 Feb-01-2021, 09:11 AM
Last Post: buran
  passing ver to os.popen evilcode1 3 2,807 Jan-26-2021, 12:32 PM
Last Post: buran
  how to pass the interactive string to Popen subprocess maiya 1 1,893 Sep-18-2020, 09:36 PM
Last Post: Larz60+
  does yield support variable args? Skaperen 0 1,690 Mar-03-2020, 02:44 AM
Last Post: Skaperen
  is there a way: repeat key word args Skaperen 2 2,249 Feb-03-2020, 06:03 PM
Last Post: Skaperen
  Using function *args to multiply multiple arguments allusernametaken 8 6,119 Nov-20-2019, 12:01 AM
Last Post: allusernametaken

Forum Jump:

User Panel Messages

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