#385 Issue closed
: What about usr/share/rear/lib/progresssubsystem.nosh ?¶
Florent38 opened issue at 2014-04-02 08:30:¶
I don't understand the test with tty -s command in this file.
When using rear through ssh like this :
ssh <NODE> rear mkbackup -v
I haven't the progress info bar
Archived 961 MiB [avg 3890 KiB/sec]
just
Preparing archive operation
Due to this test with tty -s command.
ssh <NODE> tty -s; echo $?
1
ssh <NODE>
tty -s; echo $?
0
I want to know what was the purpose of this test ?
schlomo commented at 2014-04-02 09:12:¶
Use ssh -t to get an interactive terminal (which is what you want since
you
as a human are watching it). Without -t ssh just runs the command and
conveys to the command that there is no interactive user present.
On 2 April 2014 10:30, Florent ROCHETTE notifications@github.com wrote:
I don't understand the test with tty -s command in this file.
When using rear through ssh like this :ssh
rear mkbackup -v I haven't the progress info bar
Archived 961 MiB [avg 3890 KiB/sec]
just
Preparing archive operation
Due to this test with tty -s command.
ssh
tty -s; echo $?
1ssh
tty -s; echo $?
0I want to know what was the purpose of this test ?
—
Reply to this email directly or view it on GitHubhttps://github.com/rear/rear/issues/385
.
Florent38 commented at 2014-04-02 12:12:¶
Thanks a lot !
It fix my problem. ;)
[Export of Github issue for rear/rear.]