I am writing script were rsync should be called and ask for password. However I cannot pass IP as argument. I think I am missing something simple. Any ideas? Even trivial script like this just outputs nothing, just stucks:
rsync -avzh -P $1 $3@$2:/opt/stuff/
When I put IP it worked:
rsync -avzh -P $1 $firstname.lastname@example.org:/opt/stuff/
Tried escaping colon, didn't helped, echo'ed everything and it just showed similar line. I think it is something related to interactivity.