A puzzle! Crontab and mkdir and files, oh my!

Karl Auer kauer at biplane.com.au
Thu Apr 24 13:07:37 UTC 2025


On Thu, 2025-04-24 at 13:49 +0200, Ralf Mardorf via ubuntu-users wrote:
> On Thu, 2025-04-24 at 17:49 +1000, Karl Auer wrote:
> > If you think about what the original author is probably trying to
> > do with the WHOLE crontab entry, you may get further...

I think your suggestion is probably very close to what the original
author was trying to do.

> I'm not a find user, but likely "+" is a mistake.

It's a find option that appends all the found results to one run of the
-exec command. Saves on command invocations. Instead of

   rm -r this
   rm -r that
   rm -r theother

... you get

   rm -r this that theother

> I am not a crontab user and did not realize what David realized, that
> the user is missing.

It's a user crontab, so the user for all entries is the owner of the
crontab.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au, he/him)
http://www.biplane.com.au/kauer





More information about the ubuntu-users mailing list