From dc8ab9aa75cd1d15c8d4e2dbaa4150e4a16fca05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Sat, 4 May 2019 23:02:19 +0900 Subject: [PATCH] Fix: scp parameter --- src/web/python/chocomae/backup_unpaid_maestro_log.py | 2 +- src/web/python/chocomae/send_mail_to_unpaid_maestro.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web/python/chocomae/backup_unpaid_maestro_log.py b/src/web/python/chocomae/backup_unpaid_maestro_log.py index a3f0c82..61f82e4 100644 --- a/src/web/python/chocomae/backup_unpaid_maestro_log.py +++ b/src/web/python/chocomae/backup_unpaid_maestro_log.py @@ -32,7 +32,7 @@ def send_unpaid_maestro_mysqldump_to_test_server(): command_mysqldump += ' ' + output_fullpath print(command_mysqldump) - command_scp = 'scp '+ output_fullpath + ' chocomae@test.chocomae.com:' + command_scp = 'scp '+ output_fullpath command_scp += ' ' + backup_server_address + output_directory print(command_scp) diff --git a/src/web/python/chocomae/send_mail_to_unpaid_maestro.py b/src/web/python/chocomae/send_mail_to_unpaid_maestro.py index 6ab7c5e..0a205f2 100644 --- a/src/web/python/chocomae/send_mail_to_unpaid_maestro.py +++ b/src/web/python/chocomae/send_mail_to_unpaid_maestro.py @@ -32,13 +32,13 @@ def send_mail(email, name, register_date): command_send_mail.append(name) date = register_date.strftime('%Y%m%d') command_send_mail.append(date) - print(command_send_mail) + # print(command_send_mail) # command_move_dir = ['cd', path] # print(command_move_dir) # subprocess.call(command_move_dir) - command_move_pwd = ['pwd'] - subprocess.call(command_move_pwd) + # command_move_pwd = ['pwd'] + # subprocess.call(command_move_pwd) subprocess.call(command_send_mail)