I know, but I couldn't bend my mind enough to fully get this... Could you supply an example?
I start() scp with a proper command. It swallows it without errors and the next thing it does is prompt (blocking) for a password with "\nPassword:" and waits there. I then need to feed my password, but as it seems my code messes the passed string up or passes the wrong value...