Re: Relayd httpd headers Injection

2025-05-16 Thread Kihaguru Gathura
Hello, Update. I am already using relayd to apply rules based on httpd headers. Therefore, I have consolidated all common (global) headers within relayd so that these applies to static files as well. Only the headers specific for dynamic content now remain within the scripts. Thanks and regar

Re: Relayd httpd headers Injection

2025-05-16 Thread Kihaguru Gathura
Hello, Update. I am already using relayd to apply rules based on httpd headers. Therefore, I have consolidated all common (global) headers within relayd so that these applies to static files as well. Only the headers specific for dynamic content now remain within the scripts. Thanks and regar

Re: azalia: Noise right after the driver attaches.

2025-05-16 Thread Christian Schulte
On 5/8/25 07:06, Jonathan Gray wrote: > On Fri, May 09, 2025 at 05:40:23AM +0200, Christian Schulte wrote: >> Thanks. Does not make a difference here. Maybe the device id is just a >> different one here. Cannot tell. >> >> Regards, >> -- >> Christian >> >> 0:3:0: Intel Core 4G HD Audio >> 0x0

Re: /bin/sh and RANDOM documention error?

2025-05-16 Thread Philip Guenther
On Fri, May 16, 2025 at 9:26 AM Mike Fischer wrote: > > Am 16.05.2025 um 15:35 schrieb Jan Stary : > > > > On May 16 15:10:48, fischer+o...@lavielle.com wrote: > >> The sh(1) manage does not mention the RANDOM variable. > > > > But it mentions that sh(1) is ksh(1) > > > > This version of sh is ac

Re: /bin/sh and RANDOM documention error?

2025-05-16 Thread Jan Stary
On May 16 23:07:39, fischer+o...@lavielle.com wrote: > >> around full minutes, full 5 minutes, etc. This was most likely caused > >> by bunching up of requests from cron tasks around those times. > > > > Do you mean cron tasks running at the (many) _clients_ using that server? > > Exactly. A publ

Re: OT: Fosstodon

2025-05-16 Thread Dan
May 12, 2025 17:07:23 Stephen Wiley : > I had kind of given up on Mastodon partly because all of the software > involved was so heavy and unpleasant. Just to say that It is very difficult to face the barbar reality of scarce documentation + rails requirement on your live server when you live b

Re: /bin/sh and RANDOM documention error?

2025-05-16 Thread Mike Fischer
> Am 16.05.2025 um 19:45 schrieb Jan Stary : > The (intended) semantics are slightly different from ~ * * * * /home/username/bin/script.sh The latter calculates the random value once when the crontab is loaded, while the former calculates it each time the crontab entry is tri

Re: Relayd httpd headers Injection

2025-05-16 Thread Michael Hekeler
> What is the way to inject http headers in httpd for static content? httpd(8) is not for injecting/manipulating HTTP-headers. Example: If you need to add an "foobar" header you have to combine httpd(8) and relayd(8) then select [1] either the request or the response (depends on your use-case an

Re: eephy / dweq

2025-05-16 Thread Sven F.
On Fri, May 16, 2025 at 11:05 AM Sven F. wrote: > Hello, > > On an amd64 device: > > OpenBSD 7.7 (GENERIC.MP) #625: Sun Apr 13 08:30:20 MDT 2025 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 16968613888 (16182MB) > avail mem = 16427728896 (15666MB) > rand

Re: /bin/sh and RANDOM documention error?

2025-05-16 Thread Jan Stary
> >> The (intended) semantics are slightly different from > >> ~ * * * * /home/username/bin/script.sh > >> The latter calculates the random value once when the crontab is loaded, > >> while the former calculates it each time the crontab entry is triggered. > > > > Why do you need that? > > a) To

Re: From Xfce to Mate

2025-05-16 Thread Dan
Michael, at the next wrong suggestion I let you know by invitation next time I give away signed blue footballs. Dan -- Blog: http://bsd.gaoxio.com - Repo: https://code.5mode.com Please reply to the mailing-list, leveraging technical stuff. May 15, 2025 23:06:03 Michael Hekeler : > you wa

Re: /bin/sh and RANDOM documention error?

2025-05-16 Thread Mike Fischer
> Am 16.05.2025 um 17:33 schrieb Jan Stary : > >>> How exactly are you using RANDOM in a crontab, >> >> * * * * * time $((RANDOM % 60));/home/username/bin/script.sh > > That doesn't make any sense: do you mean sleep(1) instead of time(1)? Sorry, yes. sleep is correct. > Show the actual line

Re: /bin/sh and RANDOM documention error?

2025-05-16 Thread Jan Stary
> > How exactly are you using RANDOM in a crontab, > > * * * * * time $((RANDOM % 60));/home/username/bin/script.sh That doesn't make any sense: do you mean sleep(1) instead of time(1)? Show the actual lines from the actual crontab -l > The (intended) semantics are slightly different from > ~ *

Re: Relayd httpd headers Injection

2025-05-16 Thread Kihaguru Gathura
Thank you Dan, This is CGI in C. This is an issue of maintainability. Headers embedded in cgi scripts become a challenge to update. It requires tedious recompiling of scripts especially for big web applications with hundreds or thousands of them. Serving common http headers via httpd would ease

eephy / dweq

2025-05-16 Thread Sven F.
Hello, On an amd64 device: OpenBSD 7.7 (GENERIC.MP) #625: Sun Apr 13 08:30:20 MDT 2025 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 16968613888 (16182MB) avail mem = 16427728896 (15666MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 2

Re: /bin/sh and RANDOM documention error?

2025-05-16 Thread Mike Fischer
> Am 16.05.2025 um 15:35 schrieb Jan Stary : > > On May 16 15:10:48, fischer+o...@lavielle.com wrote: >> The sh(1) manage does not mention the RANDOM variable. > > But it mentions that sh(1) is ksh(1) > > This version of sh is actually ksh in disguise. Yes, I mentioned that: >sh(1) does ment

Re: /bin/sh and RANDOM documention error?

2025-05-16 Thread Crystal Kolipe
On Fri, May 16, 2025 at 03:35:42PM +0200, Jan Stary wrote: > On May 16 15:10:48, fischer+o...@lavielle.com wrote: > > The sh(1) manage does not mention the RANDOM variable. > > But it mentions that sh(1) is ksh(1) It also mentions that sh(1): "describes only the parts relevant to a POSIX complia

Re: /bin/sh and RANDOM documention error?

2025-05-16 Thread Jan Stary
On May 16 15:10:48, fischer+o...@lavielle.com wrote: > The sh(1) manage does not mention the RANDOM variable. But it mentions that sh(1) is ksh(1) This version of sh is actually ksh in disguise. $ ls -li /bin/*sh and the ksh(1) manpage documents RANDOM. > OTOH using RANDOM in a crontab(5), w

/bin/sh and RANDOM documention error?

2025-05-16 Thread Mike Fischer
The sh(1) manage does not mention the RANDOM variable. However the following script seems to work: ``` #!/bin/sh echo $RANDOM ``` (Same as `$ sh -c 'echo $RANDOM'`.) OTOH using RANDOM in a crontab(5), which has the SHELL=/bin/sh line, does not seem to work. sh(1) does mention that it is based

Re: Perl XML::Feed

2025-05-16 Thread Stuart Henderson
On 2025-05-15, Jon Fineman wrote: > I am trying to install XML::Feed on 7.7 GENERIC.MP#625. This I believe > relies upon XML::LibXML. It looks like I am getting unit test errors > for LibXML. > > I also installed libxml-2, p5-libxml. Alien::Libxml2 was already installed > > I am rather new to in

Relayd httpd headers Injection

2025-05-16 Thread Dan
Hello Kia guru.. serve it by php via header() changes? But I would stick to wait for answers mostly relayd and httpd pertaining, Kia.. Dan -- Blog: http://bsd.gaoxio.com - Repo: https://code.5mode.com Please reply to the mailing-list, leveraging technical stuff. May 16, 2025 10:05:21 Kiha

Relayd httpd headers Injection

2025-05-16 Thread Kihaguru Gathura
Hi, What is the way to inject http headers in httpd for static content? Regards, Kihaguru