version 1.77, 2001/07/18 16:45:52 |
version 1.78, 2001/07/27 17:26:16 |
|
|
int pin[2], pout[2], reserved[2]; |
int pin[2], pout[2], reserved[2]; |
|
|
if (verbose_mode) |
if (verbose_mode) |
fprintf(stderr, "Executing: program %s host %s, user %s, command %s\n", |
fprintf(stderr, |
ssh_program, host, remuser ? remuser : "(unspecified)", cmd); |
"Executing: program %s host %s, user %s, command %s\n", |
|
ssh_program, host, |
|
remuser ? remuser : "(unspecified)", cmd); |
|
|
/* |
/* |
* Reserve two descriptors so that the real pipes won't get |
* Reserve two descriptors so that the real pipes won't get |
|
|
count += amt; |
count += amt; |
do { |
do { |
j = read(remin, cp, amt); |
j = read(remin, cp, amt); |
if (j == -1 && (errno == EINTR || errno == EAGAIN)) { |
if (j == -1 && (errno == EINTR || |
|
errno == EAGAIN)) { |
continue; |
continue; |
} else if (j <= 0) { |
} else if (j <= 0) { |
run_err("%s", j ? strerror(errno) : |
run_err("%s", j ? strerror(errno) : |
|
|
i = barlength * ratio / 100; |
i = barlength * ratio / 100; |
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), |
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), |
"|%.*s%*s|", i, |
"|%.*s%*s|", i, |
"*****************************************************************************" |
"***************************************" |
"*****************************************************************************", |
"***************************************" |
|
"***************************************" |
|
"***************************************", |
barlength - i, ""); |
barlength - i, ""); |
} |
} |
i = 0; |
i = 0; |