Fix: scp parameter

This commit is contained in:
2019-05-04 23:02:19 +09:00
parent 7465bbe72d
commit dc8ab9aa75
2 changed files with 4 additions and 4 deletions
@@ -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)
@@ -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)