Message-ID: <69b486eb@news.ausics.net> From: not@telling.you.invalid (Computer Nerd Kev) Subject: Re: Over-Elaborate Shell Scripting Newsgroups: comp.unix.shell,comp.os.linux.misc References: <10otpi4$1opu8$3@dont-email.me> <10otrqi$1p9ft$1@dont-email.me> <10ou2q9$1qp29$1@dont-email.me> <10oucet$vo4d$2@news.xmission.com> <10ouhk5$22anv$1@dont-email.me> <20260312095816.00001163@gmail.com> <69b33726@news.ausics.net> <20260313080000.00004c23@gmail.com> User-Agent: tin/2.6.5-20251224 ("Glenury") (Linux/2.4.31 (i586)) NNTP-Posting-Host: news.ausics.net Date: 14 Mar 2026 07:51:39 +1000 Organization: Ausics - https://newsgroups.ausics.net Lines: 20 X-Complaints: abuse@ausics.net Path: csiph.com!news.bbs.nz!news.ausics.net!not-for-mail Xref: csiph.com comp.unix.shell:26700 comp.os.linux.misc:82936 In comp.os.linux.misc John Ames wrote: > On 13 Mar 2026 07:59:02 +1000 > not@telling.you.invalid (Computer Nerd Kev) wrote: >> I've done the same thing using PHP, running the script from the >> command-line to generate the static site. I've done it in Bash >> earlier too, but I ran into things that are just much easier in >> PHP since it's built for generating HTML. > > Oh, that's a clever notion! Hadn't thought of doing it that way. Check out the ob_* functions for redirecting stdout to a file, then you can write code similar to that for dynamic pages. Admittedly I did spend hours debugging an issue which turned to be where I'd got my file descriptor variables mixed up, which probably would have been more noticable with the syntax in Bash. -- __ __ #_ < |\| |< _#