I'm trying to retrieve a SVN dump over a SSH connection
ssh user@host "sudo -u $repo_owner svnadmin dump $repo_path"
Depending on whether I already used sudo
in the last 15 minutes, I have or not have to enter my password. The problem is when I have to enter my password, it'll show up unmasked in the terminal. Therefore, I tried something like
ssh -t #...
which opens a pseudo terminal. Now, I have the problem that I don't receive a prompt for the password. The script just stops and waits for user input without telling the user that he should enter his password.
Is there a way to determine if a program that was invoked by a script waits for user input? And more important can I write something to the standard output or standard error output before an other program wants to read something from standard input. I mean some sort of hook method that is called before the actual read is done.
-- t6d