The output of the script executed with pexpect is correct, but there is no execution result.

import pexpect
child = pexpect.spawn ("mysqldump-u root-p ELA highest > / home/teddy/test.sql")
index = child.expect ("Enter password:")

print (index)
if (index! = 0):

print ("ftp login failed")
child.close(force=True)

else:

print(child.after)
child.sendline("!Wf}6e4d)~=-5}k")-sharpmysql

output:
0
b"Enter password:"

The

output looks correct, but there is no exported sql file.
what should I do

Mar.31,2021
Menu