Re: ssh hangs when restoring

From: Nicolas Ecarnot (nicolas.ecarnot_at_alussinan.org)
Date: 07/29/03

  • Next message: beside: "Re: Mapped SCP Drive on windows"
    Date: 29 Jul 2003 06:59:25 GMT
    
    

    [posted and mailed]

    Richard E. Silverman <res@qoxp.net> wrote in
    news:m2fzkq4dd1.fsf@darwin.oankali.net:

    [snip brilliant explanation]

    (Huge thank you !)

    > You can demonstrate this by modifying your command like so:
    >
    > ssh someUser@host1 cat /tmp/myFile.dump | (restore -tvf -; cat >
    > /dev/null)
    >
    > This transforms the last command into a sink -- it will read to eof,
    > because "cat" will take over after "restore" exits and read the rest
    > of stdin. This command will exit, although it may appear to hang for
    > some time if the last dump file is large, since it has to wait for all
    > that data to be transmitted over SSH.

    Exact, you're right.
    I was wrong to transmit every data across the net. Only the listing may
    interest me, and I ought to run it remote.

    The rest of your explanation is also confirmed, thank you very much.

    -- 
    Nicolas Ecarnot
    

  • Next message: beside: "Re: Mapped SCP Drive on windows"