3

i have this code for copy data :

from subprocess import call, check_call
 
call(["robocopy",'\\\\127.0.0.1\\Backup', '\\\\127.0.0.2\\h\\SQL BACKUP\\a',"/S"])

How can I access the data inside the terminal ????

I need to have access to the values that run after executing the above code snippet

output terminal like this : enter image description here

ashkan
  • 530
  • 3
  • 11

1 Answers1

0

My solution to this problem was to write the output to the file and then open the file and call its columns The final code for copying information was as follows

from subprocess import call

path = 'C:\\Bot\\'

call(["robocopy",'\\\\127.0.0.1\\Backup', '\\\\127.0.0.2\\h\\a\\ss',"/S","/MIR",f"/LOG:{path}Backup.log"])
ashkan
  • 530
  • 3
  • 11