[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash -c 'sleep 5 &' vs. ssh user@host 'sleep 5 &'
From: |
Chet Ramey |
Subject: |
Re: bash -c 'sleep 5 &' vs. ssh user@host 'sleep 5 &' |
Date: |
Tue, 22 Sep 2020 14:14:27 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 |
On 9/22/20 5:07 AM, Robert Elz wrote:
> | Then, how should we explain that
> |
> | $ ssh -t 127.0.0.1 'sleep 120 &'
> |
> | would complete immediately?
>
> With -t, there's no pty
The opposite -- -t forces pty allocation.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/