Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

In 1750 Issac Newton became discouraged when he fell up a flight of stairs.


computers / alt.os.linux.slackware / Re: drive by comments about the script

SubjectAuthor
* Installing slackware from System Rescue CD [was: Slackware 15 stucks]Javier
`* Re: Installing slackware from System Rescue CD [was: Slackware 15Henrik Carlqvist
 +- Re: Installing slackware from System Rescue CD [was: Slackware 15Jimmy Johnson
 `* historical errors [was: Installing slackware from System Rescue CD [was: SlackwaJavier
  +- Re: historical errors [was: Installing slackware from System RescueLew Pitcher
  `* Re: historical errors [was: Installing slackware from System Rescue CD [was: Sla#Paul
   `* Re: historical errors [was: Installing slackware from System RescueHenrik Carlqvist
    `* Re: drive by comments about the scriptGrant Taylor
     +* Re: drive by comments about the scriptLew Pitcher
     |+* Re: drive by comments about the scriptRich
     ||`- Re: drive by comments about the scriptGrant Taylor
     |`* Re: drive by comments about the scriptHenrik Carlqvist
     | `* Re: drive by comments about the scriptGrant Taylor
     |  `- Re: drive by comments about the scriptHenrik Carlqvist
     `* Re: drive by comments about the scriptRichard Kettlewell
      +* Re: drive by comments about the scriptGrant Taylor
      |`- Re: drive by comments about the scriptRichard Kettlewell
      `- Re: drive by comments about the scriptEli the Bearded

1
Installing slackware from System Rescue CD [was: Slackware 15 stucks]

<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=350&group=alt.os.linux.slackware#350

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 15 May 2021 19:13:30 -0500
From: invalid@invalid.invalid (Javier)
Subject: Installing slackware from System Rescue CD [was: Slackware 15 stucks]
Newsgroups: alt.os.linux.slackware
References: <s70oge$khf$1@gioia.aioe.org>
Message-ID: <ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
Date: Sat, 15 May 2021 19:13:30 -0500
Lines: 84
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-17MvLUHHwLwjjMWMC2l9A1AArv9f094CkECnqa3g5k0D0sn+ByWLhgtJcm+eyusIuedkKmf9VVrumuf!//O+3q7wSEE3Fm1KsHTt9ERdzAldWn55ULn5DULY1pC1CYnp89atIRnkQlPX75agFklznRPDsfAS!hHV1ew8/6sZhsU+7yoFvIfbbYVQ=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 4024
 by: Javier - Sun, 16 May 2021 00:13 UTC

Milky <milky@milk.fi> wrote:
> I wrote about over year ago about the same proplem ? I have a Fujitsu
> Lifebook E744 with latest UEFI update (v.1.37 Phoenix). And it stucks
> when I boot Slackware64-current-DVD.iso from my USB stick (USB 3.0 16
> GB Transcend). I have tried both UEFI ja CMS mode and in both stucks
> to keybord selection ? And both kernel options in boot (GRUB) menu ?
> Don't have a DVD-drive in my computer that could try to boot from it.
> Also tried out older versions of Slackware with same effect. Can any-
> thing be done or should I forget Slackware ?

You can try with an USB stick from system rescue CD.

https://osdn.net/projects/systemrescuecd/storage/releases/5.3.2/systemrescuecd-x86-5.3.2.iso

From System Rescue CD you can do the partitioning yourself with
cfdisk, format it with mkfs.ext3 or mkfs.ext4 with and mount the
directory and copy the packages to that directory.

Slackware is so simple that it's possible to install it even without chrooting.
This does the installing from the shell instead of relying from the
slackware installation media.

It lacks the installation of lilo, but you can rely on SystemRescue CD
to boot a Slackware kernel, and retry the install of the bootloader later.

mkdir -p ${mounted_root_dir}
mount -t ext4 ${TARGET_root} ${mounted_root_dir}
mkdir -p ${mounted_root_dir}/boot
mount -t ext3 ${TARGET_boot} ${mounted_root_dir}/boot

slack_mirror="https://mirrors.slackware.com/slackware"
slack_arch=slackware64
slack_ver=15.0
slack_pkg_dir=/tmp/slack_download/pkgs
slack_kernel_dir=/tmp/slack_download/kernels

# Check again list of packages for 15.0. This is for 14.2
slack_pkgs="${slack_arch}/{a,ap,d,e,f,l,n,t,tcl,x,xap,y}
extra/bash-completion
extra/bittornado
extra/bittorrent
extra/dip-3.3.7p
extra/wicd
extra/xf86-video-fbdev
extra/getty-ps
extra/xv
extra/xfractint
pasture" # firefox, thunderbird, ampd
# kde,kdei,xfce, y (bsdgames), k (kernel src)

mkdir -p ${slack_pkg_dir}
pushd ${slack_pkg_dir}

for i in ${slack_pkgs}; do
wget -m --no-parent --no-host-directories \
${slack_mirror}/${slack_arch}-${slack_ver}/${i}
done
popd

mkdir -p ${slack_kernel_dir}
pushd ${slack_kernel_dir}
wget -m --no-parent \
${slack_mirror}/${slack_arch}-${slack_ver}/${slack_arch}/kernels
popd

cp ${slack_mirror}/${slack_arch}-${slack_ver}/${slack_arch}/kernels/huge.s/bzImage \
${mounted_root_dir}/boot/SLACK_HUGE_bzImage
cp ${slack_mirror}/${slack_arch}-${slack_ver}/${slack_arch}/kernels/huge.s/System.map.gz \
${mounted_root_dir}/boot/SLACK_HUGE_System.map.gz

pkgtools=$(find ${slack_pkg_dir} | grep 'pkgtools-.*z$')

# ${slack_mirror}/${slack_arch}-${slack_ver}/${slack_arch}/a/pkgtools-*.txz
grep -q 'txz$' <<< ${pkgtools_txz}
pushd ${slack_pkg_dir}
tar xJf ${pkgtools_txz}
# ${slack_pkg_dir}/sbin/installpkg
popd

find ${slack_pkg_dir} | grep 't.?z$' | xargs -n 1 \
${slack_pkg_dir}/sbin/installpkg --root ${mounted_root_dir}

Re: Installing slackware from System Rescue CD [was: Slackware 15 stucks]

<s7rq5h$efl$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=351&group=alt.os.linux.slackware#351

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: Installing slackware from System Rescue CD [was: Slackware 15
stucks]
Date: Sun, 16 May 2021 19:01:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <s7rq5h$efl$1@dont-email.me>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 16 May 2021 19:01:05 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1a14923a8b29c608a72f05bcd1d6fdff";
logging-data="14837"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mFK7Ksh4ux0uwwB1No7xP"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:4XJJkeE+uzeO+/r8YU9mRo/Y3ck=
 by: Henrik Carlqvist - Sun, 16 May 2021 19:01 UTC

On Sat, 15 May 2021 19:13:30 -0500, Javier wrote:

....

> mkdir -p ${slack_pkg_dir}
> pushd ${slack_pkg_dir}
>
> for i in ${slack_pkgs}; do
> wget -m --no-parent --no-host-directories \
> ${slack_mirror}/${slack_arch}-${slack_ver}/${i}
> done popd

....

> find ${slack_pkg_dir} | grep 't.?z$' | xargs -n 1 \
> ${slack_pkg_dir}/sbin/installpkg --root ${mounted_root_dir}

I havn't tried to install Slackware without using a more ore less
customized Slackware installation media myself. However, at the end of
the installation a number of configurations are done by running all
scripts in /var/log/setup

Some of the scripts in that directory are interactive, others simply do
what they need to do without any questions asked.

Examples of what those scripts do is to configure the boot loader and
network settings.

regards Henrik

Re: Installing slackware from System Rescue CD [was: Slackware 15 stucks]

<s7sk6m$16jd$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=352&group=alt.os.linux.slackware#352

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!7LRugohFdhT57EbVPAHU0Q.user.gioia.aioe.org.POSTED!not-for-mail
From: jimmy@none.none (Jimmy Johnson)
Newsgroups: alt.os.linux.slackware
Subject: Re: Installing slackware from System Rescue CD [was: Slackware 15
stucks]
Date: Sun, 16 May 2021 19:25:29 -0700
Organization: Linux Tester
Lines: 42
Message-ID: <s7sk6m$16jd$1@gioia.aioe.org>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
NNTP-Posting-Host: 7LRugohFdhT57EbVPAHU0Q.user.gioia.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: PC Repair and Better Built Computers
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Jimmy Johnson - Mon, 17 May 2021 02:25 UTC

On 5/16/21 12:01 PM, Henrik Carlqvist wrote:
> On Sat, 15 May 2021 19:13:30 -0500, Javier wrote:
>
> ...
>
>> mkdir -p ${slack_pkg_dir}
>> pushd ${slack_pkg_dir}
>>
>> for i in ${slack_pkgs}; do
>> wget -m --no-parent --no-host-directories \
>> ${slack_mirror}/${slack_arch}-${slack_ver}/${i}
>> done popd
>
> ...
>
>> find ${slack_pkg_dir} | grep 't.?z$' | xargs -n 1 \
>> ${slack_pkg_dir}/sbin/installpkg --root ${mounted_root_dir}
>
> I havn't tried to install Slackware without using a more ore less
> customized Slackware installation media myself. However, at the end of
> the installation a number of configurations are done by running all
> scripts in /var/log/setup
>
> Some of the scripts in that directory are interactive, others simply do
> what they need to do without any questions asked.
>
> Examples of what those scripts do is to configure the boot loader and
> network settings.
>
> regards Henrik

I found out I messed up a kernel upgrade early this morning, I
multi-boot so I booted mx-linux, it has a chroot gui app, ran it, it's
easy, choose the partition, sda7, click, cd boot and ran the complete
upgrade again, built the initrd, quit chroot, updated legacy grub and
booted the system like there never was a problem. I highly recommend
multi-booting.
--
Jimmy Johnson

Slackware64 Current - AMD A8-7600 - EXT4 at sda7
Registered Linux User #380263

historical errors [was: Installing slackware from System Rescue CD [was: Slackware 15 stucks]]

<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=353&group=alt.os.linux.slackware#353

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 17 May 2021 14:35:41 -0500
From: invalid@invalid.invalid (Javier)
Subject: historical errors [was: Installing slackware from System Rescue CD [was: Slackware 15 stucks]]
Newsgroups: alt.os.linux.slackware
References: <s70oge$khf$1@gioia.aioe.org> <ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk> <s7rq5h$efl$1@dont-email.me>
Message-ID: <GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
Date: Mon, 17 May 2021 14:35:41 -0500
Lines: 33
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-0BI2lF7dOxlLx+Yu50qnMIiwAAY/V8hCw4BJ5qvpgh0V5z0K/rwN/fHa5BkzcpQCTLVJefMjPfJz9D8!HsBGwgA63xGzQSX6/LusCM4AXZCWxgEIaJMPrRO+Luv3dmYXKRASt34Jqc12xQrENigYHMrYT3O+!g8n0cT0FnbrxkeD4tMnwqbRUgML2
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2314
 by: Javier - Mon, 17 May 2021 19:35 UTC

Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
>
> I havn't tried to install Slackware without using a more ore less
> customized Slackware installation media myself. However, at the end of
> the installation a number of configurations are done by running all
> scripts in /var/log/setup
>
> Some of the scripts in that directory are interactive, others simply do
> what they need to do without any questions asked.
>
> Examples of what those scripts do is to configure the boot loader and
> network settings.

When I first looked at the internals of the slackware installer it was
hard to me to find the installation scripts.

/var/log/setup is not the most evident place to put some scripts.

hier(7) says:

/var This directory contains files which may change in size, such as
spool and log files.

/var/log
Miscellaneous log files.

I guess Pat put the scripts in /var/log/setup when Slackware began in
the 90s, and later didn't want to change the location for fear of
breaking things (which in most cases is the right thing to do).

Other distros also had those kind of errors that were never corrected.
In the case of Debian comes to my mind the horrible desing of run-parts(1)
or the fact that /tmp is not in RAM.

Re: historical errors [was: Installing slackware from System Rescue CD [was: Slackware 15 stucks]]

<s7uh5v$hdl$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=354&group=alt.os.linux.slackware#354

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: alt.os.linux.slackware
Subject: Re: historical errors [was: Installing slackware from System Rescue
CD [was: Slackware 15 stucks]]
Date: Mon, 17 May 2021 19:46:07 -0000 (UTC)
Organization: The Pitcher Digital Freehold
Lines: 86
Message-ID: <s7uh5v$hdl$2@dont-email.me>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 17 May 2021 19:46:07 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1698b8152d56ffab4687483f089d162a";
logging-data="17845"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18XEZl6x5cZyA/k9zLSh7C0GMCTDBkH4SE="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:i1mU9XMk+O4k+RFZEKTJdAV2BdQ=
 by: Lew Pitcher - Mon, 17 May 2021 19:46 UTC

On Mon, 17 May 2021 14:35:41 -0500, Javier wrote:

> Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> wrote:
>>
>> I havn't tried to install Slackware without using a more ore less
>> customized Slackware installation media myself. However, at the end of
>> the installation a number of configurations are done by running all
>> scripts in /var/log/setup
>>
>> Some of the scripts in that directory are interactive, others simply do
>> what they need to do without any questions asked.
>>
>> Examples of what those scripts do is to configure the boot loader and
>> network settings.
>
> When I first looked at the internals of the slackware installer it was
> hard to me to find the installation scripts.
>
> /var/log/setup is not the most evident place to put some scripts.
>
> hier(7) says:
>
> /var This directory contains files which may change in size, such as
> spool and log files.
>
> /var/log
> Miscellaneous log files.
>
> I guess Pat put the scripts in /var/log/setup when Slackware began in
> the 90s, and later didn't want to change the location for fear of
> breaking things (which in most cases is the right thing to do).

IIRC, the upcoming 15.0 release moves Pat's setup files to another
location

Ahhh... here it is

Tue Jun 19 22:35:25 UTC 2018
testing/packages/pkgtools-15.0-noarch-20.txz: Rebuilt.
This update is a bit scarier than usual, so we're going to test it here
first and then move it into the main tree in a couple of days if there
are no serious bug reports. It's well-tested here, and works with the
slackpkg that's in -current now, but I don't know about slackpkg+ so that's
another reason to let it cool down here first. The purpose of this update
is to migrate the package database and directories from /var/log to
/var/lib/pkgtools. /var/log was never a good place for this data, as it is
considered by many to be a directory that could be wiped to free up some
space. Originally the package database was in /var/adm, but the FSSTND
(later FHS) group decided that directory should be a symlink to /var/log,
and I went along with that since it was years ago and I was a n00b and didn't
know any better. /var/lib/pkgtools will be a better and safer location.
The removed_packages and removed_scripts directories are really just logs
that aren't actually used for anything - those will remain under /var/log,
but moved into /var/log/pkgtools. Everything under /var/log will be
considered potentially non-permanent by the pkgtools - if any directories or
symlinks disappear from there, the pkgtools will automatically recreate them
as needed. In fact, the migration process will create symlinks from all the
old directory locations to the new ones, so anything that expects the old
locations (including slackpkg, for now) should continue to work. Once this
moves into the main tree, the plan is to fix other packages to use the new
installer script directory (/var/lib/pkgtools/setup) and change the installer
and slackpkg to use the new native locations for everything. When slackpkg
is changed over to use the new native locations, I'll also make sure to float
that in testing/ for a few days before moving it to the main tree to avoid
more unintentional disruption to slackpkg+ users.
Be aware that the package database migration is a one-way operation, but even
so if you later downgrade to an older version of the pkgtools it will still
work through the compatibility symlinks.

and

Thu Jun 21 22:58:42 UTC 2018
a/pkgtools-15.0-noarch-20.txz: Rebuilt.
Move pkgtools database to /var/lib/pkgtools/.
Move removed logs to /var/log/pkgtools/.

> Other distros also had those kind of errors that were never corrected.
> In the case of Debian comes to my mind the horrible desing of run-parts(1)
> or the fact that /tmp is not in RAM.

--
Lew Pitcher
"In Skills, We Trust"

Re: historical errors [was: Installing slackware from System Rescue CD [was: Slackware 15 stucks]]

<j732phxtkn.ln2@threeformcow.myzen.co.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=368&group=alt.os.linux.slackware#368

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!aioe.org!3Ut8M2E1JgXZMJdw7LK3Fg.user.gioia.aioe.org.POSTED!not-for-mail
From: news20k.noreply@threeformcow.myzen.co.uk (#Paul)
Newsgroups: alt.os.linux.slackware
Subject: Re: historical errors [was: Installing slackware from System Rescue CD [was: Slackware 15 stucks]]
Date: Mon, 07 Jun 2021 18:56:35 +0100
Organization: Aioe.org NNTP Server
Lines: 7
Message-ID: <j732phxtkn.ln2@threeformcow.myzen.co.uk>
References: <s70oge$khf$1@gioia.aioe.org> <ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk> <s7rq5h$efl$1@dont-email.me> <GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
NNTP-Posting-Host: 3Ut8M2E1JgXZMJdw7LK3Fg.user.gioia.aioe.org
X-Complaints-To: abuse@aioe.org
User-Agent: tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/4.4.240 (x86_64))
X-Notice: Filtered by postfilter v. 0.9.2
 by: #Paul - Mon, 7 Jun 2021 17:56 UTC

Javier <invalid@invalid.invalid> wrote:
> or the fact that /tmp is not in RAM.

I'll have you know I have files over 5 years old in /tmp,
and I like it that way :-)

#Paul

Re: historical errors [was: Installing slackware from System Rescue CD [was: Slackware 15 stucks]]

<s9ltn5$qd6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=369&group=alt.os.linux.slackware#369

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: historical errors [was: Installing slackware from System Rescue
CD [was: Slackware 15 stucks]]
Date: Mon, 7 Jun 2021 19:57:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <s9ltn5$qd6$1@dont-email.me>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 7 Jun 2021 19:57:25 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="29000bfeb2909f56cfe24c7aee3c0802";
logging-data="27046"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Jj6bzDufWnn0n4Ql5n2cr"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:y9KNfo+xDxs6Hdh/GemQQCtrLXQ=
 by: Henrik Carlqvist - Mon, 7 Jun 2021 19:57 UTC

On Mon, 07 Jun 2021 18:56:35 +0100, #Paul wrote:
> I'll have you know I have files over 5 years old in /tmp,
> and I like it that way :-)

I have added a custom cron script to remove files in /tmp older than 37
days and empty directories not touched in 37 days:

-8<---------------------------------

cat /etc/cron.daily/tmp-clean
#!/bin/sh
# Cleanup /tmp however, do not remove sockets for X

# No lost+found with reiserfs, but ext* has it...
find /tmp/lost+found -exec /bin/touch {} \;
find /tmp -type s -exec /bin/touch {} \;
find /tmp -type d -empty -mtime +37 -exec /bin/rmdir {} \;
find /tmp -atime +37 -exec /bin/rm {} \;

-8<---------------------------------

As the comment says in the script X might crash if sockets like
/tmp/.X11-unix/X0 is removed so the script starts by touching all sockets
to make sure that they are not removed.

regards Henrik

Re: drive by comments about the script

<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=372&group=alt.os.linux.slackware#372

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Tue, 8 Jun 2021 16:37:35 -0600
Organization: TNet Consulting
Message-ID: <s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Jun 2021 22:37:36 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="17929"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.9.0
In-Reply-To: <s9ltn5$qd6$1@dont-email.me>
Content-Language: en-US
 by: Grant Taylor - Tue, 8 Jun 2021 22:37 UTC

On 6/7/21 1:57 PM, Henrik Carlqvist wrote:
> -8<---------------------------------
> #!/bin/sh
> # Cleanup /tmp however, do not remove sockets for X
>
> # No lost+found with reiserfs, but ext* has it...
> find /tmp/lost+found -exec /bin/touch {} \;
> find /tmp -type s -exec /bin/touch {} \;
> find /tmp -type d -empty -mtime +37 -exec /bin/rmdir {} \;
> find /tmp -atime +37 -exec /bin/rm {} \;
> -8<---------------------------------

Drive by comment: Be careful with filenames with spaces in them. I'd
suggest putting double quotes around the {} in the find -exec statements.

--
Grant. . . .
unix || die

Re: drive by comments about the script

<s9ot51$pph$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=373&group=alt.os.linux.slackware#373

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Tue, 8 Jun 2021 23:06:09 -0000 (UTC)
Organization: The Pitcher Digital Freehold
Lines: 31
Message-ID: <s9ot51$pph$1@dont-email.me>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 8 Jun 2021 23:06:09 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="dcc32c03f92525c38e7e434afab83d47";
logging-data="26417"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+2IS0KXFQp+0qfZ18U7QHgKPvZkFpCByI="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:DVlTScEcrvdBWmFo2WPtQEK53zs=
 by: Lew Pitcher - Tue, 8 Jun 2021 23:06 UTC

On Tue, 08 Jun 2021 16:37:35 -0600, Grant Taylor wrote:

> On 6/7/21 1:57 PM, Henrik Carlqvist wrote:
>> -8<---------------------------------
>> #!/bin/sh
>> # Cleanup /tmp however, do not remove sockets for X
>>
>> # No lost+found with reiserfs, but ext* has it...
>> find /tmp/lost+found -exec /bin/touch {} \;
>> find /tmp -type s -exec /bin/touch {} \;
>> find /tmp -type d -empty -mtime +37 -exec /bin/rmdir {} \;
>> find /tmp -atime +37 -exec /bin/rm {} \;
>> -8<---------------------------------
>
> Drive by comment: Be careful with filenames with spaces in them. I'd
> suggest putting double quotes around the {} in the find -exec statements.

GNU find(1) extends POSIX find(1) with a "-delete" action that does not
require exposing filenames to the shell. As such, it offers an alternative
to the OP's
find /tmp -atime +37 -exec /bin/rm {} \;
in
find /tmp -atime +37 -delete

For added security, I would rephrase the command to:
find /tmp -atime +37 -print -delete
to keep a record of files and directories deleted.

--
Lew Pitcher
"In Skills, We Trust"

Re: drive by comments about the script

<s9p2qq$ufo$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=376&group=alt.os.linux.slackware#376

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 9 Jun 2021 00:43:06 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <s9p2qq$ufo$1@dont-email.me>
References: <s70oge$khf$1@gioia.aioe.org> <ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk> <s7rq5h$efl$1@dont-email.me> <GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk> <j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me> <s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net> <s9ot51$pph$1@dont-email.me>
Injection-Date: Wed, 9 Jun 2021 00:43:06 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="0266e68395522ec72be519e053901694";
logging-data="31224"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Vy5sasPp/dm8fH+rrUhYA"
User-Agent: tin/2.0.1-20111224 ("Achenvoir") (UNIX) (Linux/3.10.17 (x86_64))
Cancel-Lock: sha1:iAn+n6Ze/wtp/25qVZWH/grGA9Q=
 by: Rich - Wed, 9 Jun 2021 00:43 UTC

Lew Pitcher <lew.pitcher@digitalfreehold.ca> wrote:
> On Tue, 08 Jun 2021 16:37:35 -0600, Grant Taylor wrote:
>
>> On 6/7/21 1:57 PM, Henrik Carlqvist wrote:
>>> -8<---------------------------------
>>> #!/bin/sh
>>> # Cleanup /tmp however, do not remove sockets for X
>>>
>>> # No lost+found with reiserfs, but ext* has it...
>>> find /tmp/lost+found -exec /bin/touch {} \;
>>> find /tmp -type s -exec /bin/touch {} \;
>>> find /tmp -type d -empty -mtime +37 -exec /bin/rmdir {} \;
>>> find /tmp -atime +37 -exec /bin/rm {} \;
>>> -8<---------------------------------
>>
>> Drive by comment: Be careful with filenames with spaces in them. I'd
>> suggest putting double quotes around the {} in the find -exec statements.
>
> GNU find(1) extends POSIX find(1) with a "-delete" action that does not
> require exposing filenames to the shell. As such, it offers an alternative
> to the OP's
> find /tmp -atime +37 -exec /bin/rm {} \;
> in
> find /tmp -atime +37 -delete
>
> For added security, I would rephrase the command to:
> find /tmp -atime +37 -print -delete
> to keep a record of files and directories deleted.

The -exec option to find, using the ; terminator, also forks and
executes the command specified ones per filename found. That can be
avoided by using the + terminator "-exec /bin/rm {} +" instead, but I
prefer to pipe through xargs instead:

find /tmp -atime +37 -print0 | xargs -0 /bin/rm

With either the "+" or the xargs variant, only enough fork()/exec()'s
to delete all the found filenames are executed, instead of one for each
individual file.

Also, depending on disk seek performance (i.e., ssd vs mechanical disk)
the find pipe to xargs could very well run in parallel. The
fork()/exec() variant is either finding files, or deleting them, but
not both at the same time.

Re: drive by comments about the script

<s9pbtn$v5e$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=380&group=alt.os.linux.slackware#380

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Tue, 8 Jun 2021 21:18:13 -0600
Organization: TNet Consulting
Message-ID: <s9pbtn$v5e$1@tncsrv09.home.tnetconsulting.net>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net> <s9ot51$pph$1@dont-email.me>
<s9p2qq$ufo$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 9 Jun 2021 03:18:15 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="31918"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.9.0
In-Reply-To: <s9p2qq$ufo$1@dont-email.me>
Content-Language: en-US
 by: Grant Taylor - Wed, 9 Jun 2021 03:18 UTC

I think both Lew's and Rich's comments are on target and very good.

--
Grant. . . .
unix || die

Re: drive by comments about the script

<87r1hbto12.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=382&group=alt.os.linux.slackware#382

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!news.niel.me!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 09 Jun 2021 09:55:53 +0100
Organization: terraraq NNTP server
Message-ID: <87r1hbto12.fsf@LkoBDZeT.terraraq.uk>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="19040"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:/wWHAjUxz78MTcTsrt9Kg//2EJY=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Wed, 9 Jun 2021 08:55 UTC

Grant Taylor <gtaylor@tnetconsulting.net> writes:
> On 6/7/21 1:57 PM, Henrik Carlqvist wrote:
>> -8<---------------------------------
>> #!/bin/sh
>> # Cleanup /tmp however, do not remove sockets for X
>>
>> # No lost+found with reiserfs, but ext* has it...
>> find /tmp/lost+found -exec /bin/touch {} \;
>> find /tmp -type s -exec /bin/touch {} \;
>> find /tmp -type d -empty -mtime +37 -exec /bin/rmdir {} \;
>> find /tmp -atime +37 -exec /bin/rm {} \;
>> -8<---------------------------------
>
> Drive by comment: Be careful with filenames with spaces in them. I'd
> suggest putting double quotes around the {} in the find -exec
> statements.

That’s not how shell quoting or find -exec work.

The real problem with these commands is that they contain a well-known
vulnerability. For details see:

https://www.gnu.org/software/findutils/manual/html_node/find_html/Race-Conditions-with-_002dexec.html

--
https://www.greenend.org.uk/rjk/

Re: drive by comments about the script

<s9qlev$sko$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=383&group=alt.os.linux.slackware#383

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 9 Jun 2021 09:07:08 -0600
Organization: TNet Consulting
Message-ID: <s9qlev$sko$1@tncsrv09.home.tnetconsulting.net>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>
<87r1hbto12.fsf@LkoBDZeT.terraraq.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 9 Jun 2021 15:07:11 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="29336"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.9.0
In-Reply-To: <87r1hbto12.fsf@LkoBDZeT.terraraq.uk>
Content-Language: en-US
 by: Grant Taylor - Wed, 9 Jun 2021 15:07 UTC

On 6/9/21 2:55 AM, Richard Kettlewell wrote:
> That’s not how shell quoting or find -exec work.

Please elaborate.

> The real problem with these commands is that they contain a well-known
> vulnerability. For details see:

I completely agree that there is a timing component (race condition)
that can be a problem. But that's not the component I was speaking to.

--
Grant. . . .
unix || die

Re: drive by comments about the script

<87lf7jt1kl.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=384&group=alt.os.linux.slackware#384

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!news.nntp4.net!nntp.terraraq.uk!.POSTED.nntp.terraraq.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 09 Jun 2021 18:00:58 +0100
Organization: terraraq NNTP server
Message-ID: <87lf7jt1kl.fsf@LkoBDZeT.terraraq.uk>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>
<87r1hbto12.fsf@LkoBDZeT.terraraq.uk>
<s9qlev$sko$1@tncsrv09.home.tnetconsulting.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: mantic.terraraq.uk; posting-host="nntp.terraraq.uk:2a00:1098:0:86:1000:3f:0:2";
logging-data="26197"; mail-complaints-to="usenet@mantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Cancel-Lock: sha1:Ig0eQtp3WvBlBhFFWKjVT4kU3Xw=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Wed, 9 Jun 2021 17:00 UTC

Grant Taylor <gtaylor@tnetconsulting.net> writes:
> On 6/9/21 2:55 AM, Richard Kettlewell wrote:
>> That’s not how shell quoting or find -exec work.
>
> Please elaborate.

I have too much RSI to repeat shell-quoting rules and the semantics of
find -exec. You will have to look them up.

--
https://www.greenend.org.uk/rjk/

Re: drive by comments about the script

<eli$2106091443@qaz.wtf>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=385&group=alt.os.linux.slackware#385

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!qz!not-for-mail
From: *@eli.users.panix.com (Eli the Bearded)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 9 Jun 2021 18:44:01 +0000 (UTC)
Organization: Some absurd concept
Lines: 29
Message-ID: <eli$2106091443@qaz.wtf>
References: <s70oge$khf$1@gioia.aioe.org> <s9ltn5$qd6$1@dont-email.me> <s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net> <87r1hbto12.fsf@LkoBDZeT.terraraq.uk>
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader1.panix.com 1623264241 10296 166.84.1.5 (9 Jun 2021 18:44:01 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Wed, 9 Jun 2021 18:44:01 +0000 (UTC)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
 by: Eli the Bearded - Wed, 9 Jun 2021 18:44 UTC

In alt.os.linux.slackware, Richard Kettlewell <invalid@invalid.invalid> wrote:
> Grant Taylor <gtaylor@tnetconsulting.net> writes:
>> Drive by comment: Be careful with filenames with spaces in them. I'd
>> suggest putting double quotes around the {} in the find -exec
>> statements.
> That's not how shell quoting or find -exec work.

Agreed. Note that I'm using ksh and have PS2 set to <TAB> here:

$ cd /var/tmp
$ mkdir 'I
U+2665
trouble' && cd I*trouble
$ mkdir '`echo nana`'
$ touch '`echo nana`'/'
yikes
'
$ cd ..
$ find . -size 0 -type f -exec ls -ld {} +
-rw-rw-r-- 1 username username 0 Jun 9 11:35 './I'$'\n''U+2665'$'\n''trouble/`echo nana`/'$'\n''yikes'$'\n'
$

Since I'm using ksh, {} is not special to shell, and does not need
quoting. Since {} is safely replaced by find, whitespace and shell
metas in names is not an issue.

Elijah
------
did not actually include the unicode, just the U+codepoint

Re: drive by comments about the script

<s9r9n7$s5e$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=386&group=alt.os.linux.slackware#386

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 9 Jun 2021 20:52:55 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <s9r9n7$s5e$1@dont-email.me>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>
<s9ot51$pph$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 9 Jun 2021 20:52:55 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="dae27748346b312124f06fe0c6bfb69a";
logging-data="28846"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4NK3OPlmaB3IrM9PrVcrn"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:TV3IzaOUDk/5fiAhAknHyXFgkng=
 by: Henrik Carlqvist - Wed, 9 Jun 2021 20:52 UTC

On Tue, 08 Jun 2021 23:06:09 +0000, Lew Pitcher wrote:

> On Tue, 08 Jun 2021 16:37:35 -0600, Grant Taylor wrote:
>
>> On 6/7/21 1:57 PM, Henrik Carlqvist wrote:
>>> -8<---------------------------------
>>> #!/bin/sh
>>> # Cleanup /tmp however, do not remove sockets for X
>>>
>>> # No lost+found with reiserfs, but ext* has it...
>>> find /tmp/lost+found -exec /bin/touch {} \;
>>> find /tmp -type s -exec /bin/touch {} \;
>>> find /tmp -type d -empty -mtime +37 -exec /bin/rmdir {} \;
>>> find /tmp -atime +37 -exec /bin/rm {} \;
>>> -8<---------------------------------

> For added security, I would rephrase the command to:
> find /tmp -atime +37 -print -delete
> to keep a record of files and directories deleted.

Thanks for all comments!

I will try:

find /tmp/lost+found -exec /bin/touch {} \;
find /tmp -type s -exec /bin/touch {} \;
find /tmp -type d -empty -mtime +37 -print -delete
find /tmp -atime +37 -print -delete

The record of deleted files will end up in emails to me. As this cron job
is being run on 50+ machines it will probably mean 50+ emails every
night. I might remove the -print if it gets too much to read...

regards Henrik

Re: drive by comments about the script

<s9rlqt$dv9$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=388&group=alt.os.linux.slackware#388

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtaylor@tnetconsulting.net (Grant Taylor)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Wed, 9 Jun 2021 18:19:37 -0600
Organization: TNet Consulting
Message-ID: <s9rlqt$dv9$1@tncsrv09.home.tnetconsulting.net>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net> <s9ot51$pph$1@dont-email.me>
<s9r9n7$s5e$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 10 Jun 2021 00:19:41 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="14313"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.9.0
In-Reply-To: <s9r9n7$s5e$1@dont-email.me>
Content-Language: en-US
 by: Grant Taylor - Thu, 10 Jun 2021 00:19 UTC

On 6/9/21 2:52 PM, Henrik Carlqvist wrote:
> The record of deleted files will end up in emails to me. As this cron
> job is being run on 50+ machines it will probably mean 50+ emails
> every night. I might remove the -print if it gets too much to read...

(Pro)Tip: Have one string of text for success and another string of
text for failure. Then configure email client filtering to mark success
messages as read (and file them away). That way you can easily look at
the folder and see that the cron job is running like it should be. If
there ever is a failure, it will remain unread (maybe filed away, maybe
not) so that it will garner your attention to investigate the failure.

I've learned that it's really difficult to tell from afar if a
completely silent script is always succeeding or simply not running. I
dislike that.

--
Grant. . . .
unix || die

Re: drive by comments about the script

<s9s7bn$gbv$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=389&group=alt.os.linux.slackware#389

  copy link   Newsgroups: alt.os.linux.slackware
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Henrik.Carlqvist@deadspam.com (Henrik Carlqvist)
Newsgroups: alt.os.linux.slackware
Subject: Re: drive by comments about the script
Date: Thu, 10 Jun 2021 05:18:47 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <s9s7bn$gbv$1@dont-email.me>
References: <s70oge$khf$1@gioia.aioe.org>
<ff6dnSKMVug3_j39nZ2dnUU78R_NnZ2d@brightview.co.uk>
<s7rq5h$efl$1@dont-email.me>
<GMednSlpaZwQWD_9nZ2dnUU78ffNnZ2d@brightview.co.uk>
<j732phxtkn.ln2@threeformcow.myzen.co.uk> <s9ltn5$qd6$1@dont-email.me>
<s9orfg$hg9$1@tncsrv09.home.tnetconsulting.net>
<s9ot51$pph$1@dont-email.me> <s9r9n7$s5e$1@dont-email.me>
<s9rlqt$dv9$1@tncsrv09.home.tnetconsulting.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 10 Jun 2021 05:18:47 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f65c3233784fae6edae19b48b5bebe44";
logging-data="16767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NEyGxFaZwBqQzqz1BMRig"
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:p54QleAyxbW/e6cd5eE6pLhpkBU=
 by: Henrik Carlqvist - Thu, 10 Jun 2021 05:18 UTC

On Wed, 09 Jun 2021 18:19:37 -0600, Grant Taylor wrote:
> I've learned that it's really difficult to tell from afar if a
> completely silent script is always succeeding or simply not running. I
> dislike that.

Thanks, yes, I share that experience. During the years it has happened
that the crond daemon has died completely. Fortunately all those machines
are also monitored by software which will tell if some important deamon
has died and/or if some partition is getting more than 90% full. I have
/tmp on a separate partition.

regards Henrik

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor