One possibility is that scp may be testing whether stdin/stdout are connected to a tty device. Your program isn't a tty, so scp could be deciding not to output progress information because it won't be seen anyhow.
If this is the case, you should be able to work around it by using Expect to run scp via a pseudo-tty (ptty).
Again, though, this is hypothetical. scp could be refusing to cooperate for a completely different reason, in which case this won't make any difference, but it's what I would try first if I were in your position. | [reply] |
So, help us to help you.
- Read How do I post a question effectively?
- Search -- for, oh, say "progress bar"
- Super search
- Show us code
- Specify what's happening/not happening that you expected;
...yeah, yeah, you "sorta'" did, but not unambiguously
and, welcome to the Monastery.
BTW, do you rap?
| [reply] |