Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and appears to be fixed. Will keep monitoring.


devel / comp.lang.python / Re: Find the path of a shell command

SubjectAuthor
o Re: Find the path of a shell commandCameron Simpson

1
Re: Find the path of a shell command

<mailman.682.1665611418.20444.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19867&group=comp.lang.python#19867

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: cs...@cskk.id.au (Cameron Simpson)
Newsgroups: comp.lang.python
Subject: Re: Find the path of a shell command
Date: Thu, 13 Oct 2022 08:50:13 +1100
Lines: 22
Message-ID: <mailman.682.1665611418.20444.python-list@python.org>
References: <Y0cScuXvr79+MDAm@anomaly>
<Y0c2leNwOdPUwPTn@cskk.homeip.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
X-Trace: news.uni-berlin.de LuuJL0myBwUWOIHRUJRuwQr6RE7GrVflGaVIy1B8nJ1A==
Return-Path: <cameron@cskk.id.au>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.031
X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'dan': 0.09; 'cheers,':
0.11; 'cameron': 0.16; 'from:addr:cs': 0.16;
'from:addr:cskk.id.au': 0.16; 'from:name:cameron simpson': 0.16;
'message-id:@cskk.homeip.net': 0.16; 'received:13.237': 0.16;
'received:13.237.201': 0.16; 'received:13.237.201.189': 0.16;
'received:cskk.id.au': 0.16; 'received:fleet16-wifi.l': 0.16;
'received:id.au': 0.16; 'received:l': 0.16;
'received:mail.cskk.id.au': 0.16; 'simpson': 0.16; 'slow': 0.16;
'them?': 0.16; 'wrote:': 0.16; 'to:addr:python-list': 0.20;
"i've": 0.22; 'command': 0.23; 'local': 0.27; 'function': 0.27;
'header:User-Agent:1': 0.30; 'takes': 0.31; "doesn't": 0.32;
'script': 0.33; 'header:In-Reply-To:1': 0.34; 'received:au': 0.35;
'files': 0.36; 'target': 0.36; 'using': 0.37; 'directory': 0.37;
'quite': 0.39; 'use': 0.39; 'prompt': 0.39; 'shared': 0.39;
'something': 0.40; 'ago.': 0.64; 'received:13': 0.64; 'your':
0.64; 'came': 0.65; 'received:userid': 0.66; 'day': 0.66;
'worked': 0.67; 'back': 0.67; 'entire': 0.67; 'right': 0.68;
'life': 0.77; 'ancient': 0.91; 'wondered': 0.91
Mail-Followup-To: python-list@python.org
Content-Disposition: inline
In-Reply-To: <Y0cScuXvr79+MDAm@anomaly>
User-Agent: Mutt/2.2.7 (2022-08-07)
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <Y0c2leNwOdPUwPTn@cskk.homeip.net>
X-Mailman-Original-References: <Y0cScuXvr79+MDAm@anomaly>
 by: Cameron Simpson - Wed, 12 Oct 2022 21:50 UTC

On 12Oct2022 15:16, Dan Sommers <2QdxY4RzWzUUiLuE@potatochowder.com> wrote:
>rm doesn't take that long. Why are you detaching them?

For big things it takes quite a while. On slow discs it can take quite a
while. For directory trees with many files it can take quite a while.
For remove filesystems, even a local to your LAN NAS, it can take quite
a while.

Certainly I've got real world modern day things right now where "quite a
while" can be many minutes.

I've got an `rmr` script of my own whose entire function is to rename
the target to something like `.frm.blah` and then remove `.frm.blah` in
the background. I use it a _lot_.

Ancient anecdote. We got funky new workstations at Uni long ago. For the
first time in my life "rm filename" came back to the command prompt with
no perceptable delay. So fast that I first wondered if it had worked at
all. Previously we'd been using shared minicomputers (PDPs, Vaxen).

Cheers,
Cameron Simpson <cs@cskk.id.au>

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor