Is there any way to login to another machine specifying the password in the script itself??
SSH-keygen wont work for me so i need to specify it in the script
#!/bin/sh
ssh root@201.1.192.21 mysqldump -uroot -pxxxxxx > backup/a.sql
Is there any way to login to another machine specifying the password in the script itself??
SSH-keygen wont work for me so i need to specify it in the script
#!/bin/sh
ssh root@201.1.192.21 mysqldump -uroot -pxxxxxx > backup/a.sql
You can use expect.