[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sr #111026] AGPL spamming my `git pull` outputs
From: |
Ineiev |
Subject: |
Re: [sr #111026] AGPL spamming my `git pull` outputs |
Date: |
Tue, 27 Feb 2024 15:07:55 +0000 |
On Tue, Feb 27, 2024 at 09:27:58AM -0500, Stefan Monnier wrote:
> > How does the script tell which connection is interactive?
>
> Usually that's done by testing if the output is a tty.
user@host:~$ ssh ineiev@cfarm110.cfarm.net cat tty.pl
#! /usr/bin/perl
print "tty(?)\n" if -t 1;
print "scripted(?)\n" unless -t 1;
user@host:~$ ssh ineiev@cfarm110.cfarm.net
Last login: Tue Feb 27 &c.
ineiev@gcc1-power7:~$ ./tty.pl
tty(?)
ineiev@gcc1-power7:~$ logout
Connection to cfarm110.cfarm.net closed.
user@host:~$ ssh ineiev@cfarm110.cfarm.net ./tty.pl
scripted(?)
user@host:~$
signature.asc
Description: PGP signature
- [sr #111026] AGPL spamming my `git pull` outputs, (continued)
- [sr #111026] AGPL spamming my `git pull` outputs, Alfred M. Szmidt, 2024/02/25
- [sr #111026] AGPL spamming my `git pull` outputs, Karl Berry, 2024/02/25
- [sr #111026] AGPL spamming my `git pull` outputs, Stefan Monnier, 2024/02/25
- [sr #111026] AGPL spamming my `git pull` outputs, Ineiev, 2024/02/26
- [sr #111026] AGPL spamming my `git pull` outputs, Alfred M. Szmidt, 2024/02/26
- [sr #111026] AGPL spamming my `git pull` outputs, Karl Fogel, 2024/02/26
- [sr #111026] AGPL spamming my `git pull` outputs, Ineiev, 2024/02/27
[sr #111026] AGPL spamming my `git pull` outputs, Alfred M. Szmidt, 2024/02/27
[sr #111026] AGPL spamming my `git pull` outputs, Bob Proulx, 2024/02/27
[sr #111026] AGPL spamming my `git pull` outputs, Stefan Monnier, 2024/02/27
[sr #111026] AGPL spamming my `git pull` outputs, Corwin Brust, 2024/02/27
[sr #111026] AGPL spamming my `git pull` outputs, Karl Fogel, 2024/02/27
[sr #111026] AGPL spamming my `git pull` outputs, Corwin Brust, 2024/02/27