dharmendra1986 0 Newbie Poster
I have a .sh script which is as follows.
#/bin/bash
ssh uname@111.XXX.111.XXX | mysqldump -u uname -p test_db>/home/dm/Downloads/test.sql
# script ended
I want to extract the script from the server "111.XXX.111.XXX" and keep it in a server
directory but I do not want to log in to the server.
So, the script test.sh should run on my local machine $./test.sh
This is not running. It is asking for the password of the server and then stoped.