Re: [PLUG] Shell Script Guidance [RESOLVED]

2016-07-01 Thread Rich Shepard
On Fri, 1 Jul 2016, Michael Rasmussen wrote: > 300 messages an hour is one every twelve seconds. Michael, Yes, I calculated that but for some reason I no longer remember didn't pursue sending the entire list with an appropriate pause between each one. The limit, BTW, applies only to the

Re: [PLUG] Shell Script Guidance

2016-07-01 Thread Michael Rasmussen
300 messages an hour is one every twelve seconds. You could keep one large list and: for ADR in $(cat address_list) do cat msg | mailx -S "whateva" $ADR sleep 14# leave some breathing room for other emails you might send done Above given as an example of how you could do it in bash.

Re: [PLUG] Shell Script Guidance

2016-07-01 Thread Tomas Kuchta
On Thursday, June 30, 2016 01:28:17 PM Rich Shepard wrote: > On Thu, 30 Jun 2016, wes wrote: > > Bash can do literally anything that can be done. > > wes, > >True. But sometimes awk, set, or a python script is a peferred > alternative. Or you can combine them all inside bash as needed using

Re: [PLUG] Shell Script Guidance

2016-06-30 Thread Rich Shepard
On Thu, 30 Jun 2016, Rich Shepard wrote: > I believe that this can be scripted and it will require me to dig into my > bash books in detail looking for the appropriate builtin commands and > testing syntax. I've dusted off Ken Burtch's "Linux Shell Scripting With Bash" and will re-read it

Re: [PLUG] Shell Script Guidance

2016-06-30 Thread Rich Shepard
On Thu, 30 Jun 2016, Jim Garrison wrote: > True, but Mailman can be easily set up so it works one-way only. For about > a decade I ran the "Central Texas Early Music List" when I lived in > Austin. It was a one-way concert announcement list that had over 1000 > members. Mailman worked extremely

Re: [PLUG] Shell Script Guidance

2016-06-30 Thread Jim Garrison
On 6/30/2016 2:09 PM, Rich Shepard wrote: > On Thu, 30 Jun 2016, Jim Garrison wrote: > >> Any reason you can't use an existing list management package such as >> Mailman or Majordomo? They take a bit to set up but once configured they >> are easy to manage, and have knobs for throttling. > > Jim,

Re: [PLUG] Shell Script Guidance

2016-06-30 Thread wes
On Thu, Jun 30, 2016 at 1:28 PM, Rich Shepard wrote: > On Thu, 30 Jun 2016, wes wrote: > > > Bash can do literally anything that can be done. > > wes, > >True. But sometimes awk, set, or a python script is a peferred > alternative. > > Regards, > > Rich > The

Re: [PLUG] Shell Script Guidance

2016-06-30 Thread Jim Garrison
Any reason you can't use an existing list management package such as Mailman or Majordomo? They take a bit to set up but once configured they are easy to manage, and have knobs for throttling. -- Jim Garrison (j...@acm.org) PGP Keys at http://www.jhmg.net RSA 0x04B73B7F DH 0x70738D88

Re: [PLUG] Shell Script Guidance

2016-06-30 Thread Rich Shepard
On Thu, 30 Jun 2016, wes wrote: > Bash can do literally anything that can be done. wes, True. But sometimes awk, set, or a python script is a peferred alternative. Regards, Rich ___ PLUG mailing list PLUG@lists.pdxlinux.org

Re: [PLUG] Shell Script Guidance

2016-06-30 Thread Rich Shepard
On Thu, 30 Jun 2016, Paul Heinlein wrote: > Can you be a bit more explicit about steps 1 and 2? How many files are > in play? How is the file (are the files) formatted? Is "address" a US > Mail address? An e-mail address? A URL? Paul, Sure. I had to separate a single file into individual

Re: [PLUG] Shell Script Guidance

2016-06-30 Thread wes
On Thu, Jun 30, 2016 at 9:57 AM, Rich Shepard wrote: >Before I try re-inventing the wheel I would like to learn if a bash > script > can do the following: > > Bash can do literally anything that can be done. -wes ___ PLUG

Re: [PLUG] Shell Script Guidance

2016-06-30 Thread Paul Heinlein
On Thu, 30 Jun 2016, Rich Shepard wrote: > Before I try re-inventing the wheel I would like to learn if a bash script > can do the following: > > 1. Read an address from a file. > 2. Execute a command referencing that file. > 3. Repeat 1 and 2 100 times > 2. Pause for 25 minutes. > 3.

[PLUG] Shell Script Guidance

2016-06-30 Thread Rich Shepard
Before I try re-inventing the wheel I would like to learn if a bash script can do the following: 1. Read an address from a file. 2. Execute a command referencing that file. 3. Repeat 1 and 2 100 times 2. Pause for 25 minutes. 3. Repeat above until the address file end is