"sshpass ... scp ..." doesn't display a progress bar as scp normally does.
I digged in scp code and found the following:
return (getpgrp() == tcgetpgrp(STDOUT_FILENO));
The tcgetpgrp call returns -1, if scp is called via sshpass.
I tried a bit hacking in sshpass without success. Without a call of setsid() in the child fork in sshpass, the tcgetpgrp call in the child works as it should, but that fails sshpass entering the password.
As I don't how theses terminals work in much detail, I am not able to find a solution to this.
I would appreciate it if someone with deeper knowledge fixes this.
Log in to post a comment.