Python Forum
XARGS - help passing results
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XARGS - help passing results
#2
if you want to invoke system command like cp take a look at subprocess module
in the simplest form
import subprocess
subprocess.run(['cp', source, destination]) # replace source and destination with your own or assign values beforehand
also you can use pure python to copy files
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
XARGS - help passing results - by 3inchpython - Aug-03-2019, 12:04 PM
RE: XARGS - help passing results - by buran - Aug-03-2019, 12:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Search Results Web results Printing the number of days in a given month and year afefDXCTN 1 2,257 Aug-21-2020, 12:20 PM
Last Post: DeaD_EyE
  How to append one function1 results to function2 results SriRajesh 5 3,200 Jan-02-2020, 12:11 PM
Last Post: Killertjuh

Forum Jump:

User Panel Messages

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