From tclug1 at whitleymott.net Fri Apr 2 19:49:23 2021 From: tclug1 at whitleymott.net (gregrwm) Date: Fri, 2 Apr 2021 19:49:23 -0500 Subject: [tclug-list] sort output-so-far (fwd) In-Reply-To: References: Message-ID: On Fri, Apr 2, 2021 at 4:16 PM Mike Miller wrote: > On Fri, 2 Apr 2021, gregrwm wrote: > > From Mike Miller 26 Mar 2021 14:24:39 > >> On Thu, 25 Mar 2021, gregrwm wrote: > >>> question for bashers: > >>> > >>> a bash command entered as a foreground job may fork, leave something > >>> in the background, and exit to the bash prompt, and the job in the > >>> background will print it's output whenever it has any. So far so > >>> good. > >>> > >>> i want to enter a command which launches 3 subcommands in parallel, > >>> wait up to 3 seconds unless all 3 subcommands finish sooner, sort all > >>> their output-so-far together, print it, and exit to the bash prompt at > >>> this point, and if any of the subcommands weren't finished, leave them > >>> in the background and let them print more output whenever they have > >>> any. > >>> > >>> easy? hard? > >> > >> > >> Can you use tee to send output to a temp file? > >> > >> process | tee file | whatevs > >> > >> Data coming out of "process" will go to "file" but it will also go to > >> "whatevs" for further processing. > >> > >> Then you read from file. Mutiple processes could make multiple files. > >> Use the temp command to make the files. One thing I'm not completely > >> sure of: does tee write continously to file, or does it do it in only > >> at certain moments, like after each block of data comes out? I'm > >> guessing continuous but not sure. > >> > >> Mike > > > > > > what's behind the question is asking several hosts for their list of > > virtual guests and sorting the list together, and it would be nice to > > come up with the sorted list right away even if one or more of the hosts > > is down. my current and obvious compromise just waits for all results > > before finishing. > > > If you have some idea of how many lines you'll be sorting, you should be > able to sort that many lines into a file while waiting for the remaining > lines. To put the first $N lines into a temp file, do this: > > process | tee >(head -$N | sort > tempfile_$N) | whatevs > > The whole unsorted output still goes to "whatevs". So you could string > together a bunch of those tee commands and have them process increasingly > more numbers of lines. Or you could do this... > > process | tee tempfile | whatevs > > Then just do this whenever you please: > > sort tempfile | less > Mike it's a good suggestion. what i've done with it: toss the subcommands into the background, tee them to a file, see the unsorted output as it arrives on standard out, and run a second command that sorts from the file. the only bit still missing would be to wait either for all subcommands to finish, or 3 seconds, whichever comes first, and then do the sort. but this is already good enough. thanks! -- this concludes test 42 of big bang inflation dynamics. in the advent of an actual universe, further instructions will be provided. 000000000000000000000042 -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at e-skinner.net Mon Apr 12 14:16:32 2021 From: marc at e-skinner.net (Marc Skinner) Date: Mon, 12 Apr 2021 14:16:32 -0500 Subject: [tclug-list] 2 x 1U Dell Servers for sale Message-ID: I have 2 - 1U dell servers for Sale.  Looking for $100 each. Both have run CentOS 6 and 7 for years.  Don't need them any longer.  All components work fine. ------------------------ Unit 1: Dell R300 1 x 2.66 Ghz QuadCore Intel CPU 16GB RAM 2 x 73GB 15K HD Dual Power Supply Dell Rapid Rails ------------------------ Unit 2: Dell Poweredge 860 1 x 2.8 Ghz DualCore Intel CPU 8 GB RAM 2 x 500GB HD Single Power Supply No Rails From sraun at fireopal.org Fri Apr 30 15:18:03 2021 From: sraun at fireopal.org (Scott Raun) Date: Fri, 30 Apr 2021 15:18:03 -0500 Subject: [tclug-list] Favorite Certificate Provider? Message-ID: <20210430201803.GA23781@fireopal.org> for a hobbyist Linux install? I'm going to re-attack my home server next week. Objectives are going to be upgrade the version of Debian it's running, and *finally* get https working. Any recommendations for certificate providers? -- Scott Raun sraun at fireopal.org From andrew at lunn.ch Fri Apr 30 16:13:38 2021 From: andrew at lunn.ch (Andrew Lunn) Date: Fri, 30 Apr 2021 23:13:38 +0200 Subject: [tclug-list] Favorite Certificate Provider? In-Reply-To: <20210430201803.GA23781@fireopal.org> References: <20210430201803.GA23781@fireopal.org> Message-ID: On Fri, Apr 30, 2021 at 03:18:03PM -0500, Scott Raun wrote: > for a hobbyist Linux install? > > I'm going to re-attack my home server next week. Objectives are going > to be upgrade the version of Debian it's running, and *finally* get > https working. > > Any recommendations for certificate providers? https://letsencrypt.org/ Assuming you have something public facing which can perform the authentication challenge. Andrew From chapinjeff at gmail.com Fri Apr 30 15:49:11 2021 From: chapinjeff at gmail.com (Jeff Chapin) Date: Fri, 30 Apr 2021 15:49:11 -0500 Subject: [tclug-list] Favorite Certificate Provider? In-Reply-To: <20210430201803.GA23781@fireopal.org> References: <20210430201803.GA23781@fireopal.org> Message-ID: Let's Encrypt + Cloudflare is my favorite combination. It's well documented, free, widely accepted, and flexible. In my case, ports 80 and 443 are blocked at the border by my ISP, so the standard validation methods are off the table -- but I can use the DNS options since I use cloudflare for my DNS. In fact, I have several things that are internal *only*, like a proxmox cluster, that have valid LE certs. Jeff On Fri, Apr 30, 2021 at 3:37 PM Scott Raun wrote: > for a hobbyist Linux install? > > I'm going to re-attack my home server next week. Objectives are going > to be upgrade the version of Debian it's running, and *finally* get > https working. > > Any recommendations for certificate providers? > > -- > Scott Raun > sraun at fireopal.org > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > tclug-list at mn-linux.org > http://mailman.mn-linux.org/mailman/listinfo/tclug-list > -- Jeff Chapin President, CedarLug, retired President, UNIPC, "I'll get around to it" President, UNI Scuba Club Senator, NISG, retired -------------- next part -------------- An HTML attachment was scrubbed... URL: