From 32f07554c0b7d974ca9a7d56ca609225f1586080 Mon Sep 17 00:00:00 2001 From: jonnybravo Date: Tue, 20 Feb 2024 11:21:34 +0100 Subject: [PATCH] commit message from python script --- rclone/main/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rclone/main/main.py b/rclone/main/main.py index 071bd4f..8c2dac0 100755 --- a/rclone/main/main.py +++ b/rclone/main/main.py @@ -4,7 +4,7 @@ import os, time, subprocess def check_ping(hostname = str): list_command = list(str('timeout 0.2 ping -c 1 ' + hostname).split()) - response = subprocess.run(list_command, stdout=subprocess.PIPE) + response = subprocess.run(list_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) # and then check the response... if response.returncode == 0: return True @@ -16,7 +16,7 @@ def rclone_folders_copy(folder_to_sync=list, dest_folder = str): for sync_folder in folder_to_sync: print("Hole Datein", 'rclone:' + sync_folder, "...") list_command = list(str('rclone copy rclone:' + sync_folder + ' ' + dest_folder + os.sep + sync_folder + ' --update --create-empty-src-dirs').split()) - command = subprocess.run(list_command, stdout=subprocess.PIPE) + command = subprocess.run(list_command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) if command.returncode == 0: check_list.append(True) elif command > 0: @@ -25,7 +25,7 @@ def rclone_folders_copy(folder_to_sync=list, dest_folder = str): print("Kopiere Datein", dest_folder + os.sep + sync_folder, "..." ) list_command = list(str('rclone copy ' + dest_folder + os.sep + sync_folder + ' ' + "rclone:" + sync_folder + ' --update --create-empty-src-dirs').split()) - command = subprocess.run(list_command, stdout=subprocess.PIPE) + command = subprocess.run(list_command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) if command.returncode == 0: check_list.append(True) elif command.returncode > 0: