Re: Snapshot generation stalled?

2021-09-01 Thread Theo de Raadt
Because I'm not building them right now. Karel Gardas wrote: > > > Hello, > > installed snapshot on amd64 week or so ago to see how it is > working. It's #195 from Aug 23. During the past few days I've checked > from time to time > with sysupgrade (with or without -s) but it always claimed

Re: Snapshot generation stalled?

2021-09-01 Thread Christian Weisgerber
Karel Gardas: > installed snapshot on amd64 week or so ago to see how it is working. It's > #195 from Aug 23. During the past few days I've checked from time to time > with sysupgrade (with or without -s) but it always claimed I'm on the latest > snapshot. BTW, I use this to check the date of

Re: Snapshot generation stalled?

2021-09-01 Thread Ingo Schwarze
Hi Karel, Karel Gardas wrote on Wed, Sep 01, 2021 at 07:32:50PM +0200: > installed snapshot on amd64 week or so ago to see how it is working. > It's #195 from Aug 23. During the past few days I've checked from time > to time > with sysupgrade (with or without -s) but it always claimed I'm on

Snapshot generation stalled?

2021-09-01 Thread Karel Gardas
Hello, installed snapshot on amd64 week or so ago to see how it is working. It's #195 from Aug 23. During the past few days I've checked from time to time with sysupgrade (with or without -s) but it always claimed I'm on the latest snapshot. I've also switched from hostserver.de to

Re: Run a command on "last day of month"

2021-09-01 Thread Raul Miller
Or, since last day of the month never occurs before the 28th, you could run the script only on days which might be the last of the month, Also, since crontab does support a month column, you could have three crontab entries: one for months with 31 days (month: 1,3,5,7,8,10,12), another for months

Re: Run a command on "last day of month"

2021-09-01 Thread Ingo Schwarze
Hi, Adam Paulukanis wrote on Wed, Sep 01, 2021 at 04:39:54PM +0200: > if today is the last day of the month, tomorrow will be 1st. That is a non-portable assumption and a trap that many people seem to fall into. For example, in the shire calendar, 1 Afterlithe (~= July) is the fourth day after

Re: Run a command on "last day of month"

2021-09-01 Thread Paul de Weerd
On Wed, Sep 01, 2021 at 04:39:54PM +0200, Adam Paulukanis wrote: | On Wed, 1 Sept 2021 at 16:32, Christian Weisgerber wrote: | > | > Goetz Schultz: | > | > > I would go the other way and check tomorrows date. If it is "01", then I | > > know today is the last of this month: | > > | > > date

Re: Run a command on "last day of month"

2021-09-01 Thread Adam Paulukanis
On Wed, 1 Sept 2021 at 16:39, Adam Paulukanis wrote: > > On Wed, 1 Sept 2021 at 16:32, Christian Weisgerber wrote: > > > > Goetz Schultz: > > > > > I would go the other way and check tomorrows date. If it is "01", then I > > > know today is the last of this month: > > > > > > date

Re: Run a command on "last day of month"

2021-09-01 Thread Adam Paulukanis
On Wed, 1 Sept 2021 at 16:32, Christian Weisgerber wrote: > > Goetz Schultz: > > > I would go the other way and check tomorrows date. If it is "01", then I > > know today is the last of this month: > > > > date --date="tomorrow" +%d > > 02 > > That's not OpenBSD. > > $ date --date="tomorrow" +%d

Re: Run a command on "last day of month"

2021-09-01 Thread Christian Weisgerber
Goetz Schultz: > I would go the other way and check tomorrows date. If it is "01", then I > know today is the last of this month: > > date --date="tomorrow" +%d > 02 That's not OpenBSD. $ date --date="tomorrow" +%d date: unknown option -- - usage: date [-aju] [-f pformat] [-r seconds]

Re: Run a command on "last day of month"

2021-09-01 Thread Bruno Ferreira
Hello I do this one liner in my cron with success, maybe it suits you: 0› 5› *› *› *› TOM=$(TZ=MST-24 date +%d); [ $TOM -eq 1 ] && logger "Ultimo dia do mês!!!" Em qua., 1 de set. de 2021 às 09:06, Nick Holland < n...@holland-consulting.net> escreveu: > On 9/1/21 5:50

Re: Run a command on "last day of month"

2021-09-01 Thread Goetz Schultz
On 01/09/2021 13:02, Nick Holland wrote: On 9/1/21 5:50 AM, Joel Carnat wrote: Hello, I would like to run a command on "the last day of each month".   From what I understood reading the crontab(5) manpage, the simplest way would be setting day-of-month to "28-31". But this would mean

Re: Run a command on "last day of month"

2021-09-01 Thread Nick Holland
On 9/1/21 5:50 AM, Joel Carnat wrote: Hello, I would like to run a command on "the last day of each month". From what I understood reading the crontab(5) manpage, the simplest way would be setting day-of-month to "28-31". But this would mean running the command 4 times for months that have

Re: Run a command on "last day of month"

2021-09-01 Thread Theo de Raadt
Joel Carnat wrote: > Hello, > > I would like to run a command on "the last day of each month". > > From what I understood reading the crontab(5) manpage, the simplest > way would be setting day-of-month to "28-31". But this would mean > running the command 4 times for months that have 31 days.

Run a command on "last day of month"

2021-09-01 Thread Joel Carnat
Hello, I would like to run a command on "the last day of each month". From what I understood reading the crontab(5) manpage, the simplest way would be setting day-of-month to "28-31". But this would mean running the command 4 times for months that have 31 days. Is there a simpler/better way

Re: Accessing LAN behind gateway from Road Warrior on wg(4) based tunnel

2021-09-01 Thread Alexander Hall
On Fri, Aug 27, 2021 at 03:03:36PM +0200, Erling Westenvik wrote: > Hello all, > I have successfully set up a wg(4) based VPN tunnel from my laptop > (current) to my home/office gateway (6.9) but have problems > understanding how to access the LAN behind the gateway. > > [Laptop] > - wg0