Here is my problem. I need to run a command ./deploy.sh -u 1540
This will fetch version 1540 of deploy.sh on SVN
When I do, the script access SVN and ask for a password. I'm using ssh. It will first ask me a password since it guesses my SVN login is the same as my login in bash. It's not. So I have to press enter once to skip it. Then I have to enter my username, and then password to login.
Summary My ssh command do bash. Here is what I tried so far
bash -c '\''timeout 3d ssh -o StrictHostKeyChecking=no [email protected] "./deploy.sh -u 1540 && $2 && $3 && $4
2-) $2 would need to be "press enter" : as of now I tried
3-) $3 would need to be enter login : as of now :
4-) $4 would need to be enter password : as of now :
Note : Even if I make it work that way, would I need sleep between in case of delays?