Fix: scp parameter
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user