bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash -c 'sleep 5 &' vs. ssh user@host 'sleep 5 &'


From: Dale R. Worley
Subject: Re: bash -c 'sleep 5 &' vs. ssh user@host 'sleep 5 &'
Date: Tue, 22 Sep 2020 22:02:38 -0400

Clark Wang <dearvoid@gmail.com> writes:
> Then, how should we explain that
>
>   $ ssh -t 127.0.0.1 'sleep 120 &'
>
> would complete immediately?

One thing to check is whether ssh is giving you a pty in various
circumstances.  Execute the "tty" command, e.g. "ssh 127.0.0.1 tty".
Once you know whether the remote Bash has a pty and that it has been
given a command on the command line, you can start sorting out what mode
Bash is running in and exactly what "&" does.

Dale



reply via email to

[Prev in Thread] Current Thread [Next in Thread]