On 2020-05-11 21:45, Robert Moskowitz wrote:
>
>
> On 5/11/20 9:28 AM, Ed Greshko wrote:
>> On 2020-05-11 20:39, Robert Moskowitz wrote:
>>> And now you are paying the memory, cpu, etc. cost of having postfix running
>> Oh, well, I suppose I've never seen an idle postfix take up any noticeable
>>
On 5/11/20 9:28 AM, Ed Greshko wrote:
On 2020-05-11 20:39, Robert Moskowitz wrote:
And now you are paying the memory, cpu, etc. cost of having postfix running
Oh, well, I suppose I've never seen an idle postfix take up any noticeable CPU
time or memory
on any of my systems.
How can it not
On 2020-05-11 20:39, Robert Moskowitz wrote:
> And now you are paying the memory, cpu, etc. cost of having postfix running
Oh, well, I suppose I've never seen an idle postfix take up any noticeable CPU
time or memory
on any of my systems.
--
The key to getting good answers is to ask good quest
On 5/10/20 11:39 PM, Ed Greshko wrote:
On 2020-05-07 06:00, Robert Moskowitz wrote:
I know I can edit the user crontab with:
crontab -e
and display it with
crontab -l
But where is it? I don't see anything like ~/.crontab
Secondly, and more importantly, is getting a email from the
On 2020-05-07 06:00, Robert Moskowitz wrote:
> I know I can edit the user crontab with:
>
> crontab -e
>
> and display it with
>
> crontab -l
>
> But where is it? I don't see anything like ~/.crontab
>
> Secondly, and more importantly, is getting a email f
On 5/10/20 6:51 PM, Cameron Simpson wrote:
On 10May2020 13:36, Robert Moskowitz wrote:
It is entirely true. The collapsing happens when you _use_ the values:
# all safe and reliable
$ a=$( date +'%a %b %d %T %Y')
$ b=$( date +'%a %b %d %T Y')
$ c=$b
# unquoted use
$ ec
On 10May2020 13:36, Robert Moskowitz wrote:
It is entirely true. The collapsing happens when you _use_ the values:
# all safe and reliable
$ a=$( date +'%a %b %d %T %Y')
$ b=$( date +'%a %b %d %T Y')
$ c=$b
# unquoted use
$ echo $a
Sat May 09 14:37:07 2020
$ echo $b
On 5/9/20 12:41 AM, Cameron Simpson wrote:
On 08May2020 20:32, Samuel Sieb wrote:
On 5/8/20 4:32 PM, Cameron Simpson wrote:
On 08May2020 11:15, Robert Moskowitz wrote:
I added inserting a Date: line and switched to using sed:
local]# cat mycron
#!/bin/sh
currentDate="$(date +'%a %b %d %T
On 5/8/20 9:41 PM, Cameron Simpson wrote:
On 08May2020 20:32, Samuel Sieb wrote:
On 5/8/20 4:32 PM, Cameron Simpson wrote:
On 08May2020 11:15, Robert Moskowitz wrote:
I added inserting a Date: line and switched to using sed:
local]# cat mycron
#!/bin/sh
currentDate="$(date +'%a %b %d %T %Y
On 08May2020 20:32, Samuel Sieb wrote:
On 5/8/20 4:32 PM, Cameron Simpson wrote:
On 08May2020 11:15, Robert Moskowitz wrote:
I added inserting a Date: line and switched to using sed:
local]# cat mycron
#!/bin/sh
currentDate="$(date +'%a %b %d %T %Y')"
You don't need the double quotes. The
On 5/8/20 4:32 PM, Cameron Simpson wrote:
On 08May2020 11:15, Robert Moskowitz wrote:
I added inserting a Date: line and switched to using sed:
local]# cat mycron
#!/bin/sh
currentDate="$(date +'%a %b %d %T %Y')"
You don't need the double quotes. The shell parser recognises the
assignment
On 08May2020 11:15, Robert Moskowitz wrote:
I added inserting a Date: line and switched to using sed:
local]# cat mycron
#!/bin/sh
currentDate="$(date +'%a %b %d %T %Y')"
You don't need the double quotes. The shell parser recognises the
assignment statement _before_ breaking things on white
On 08May2020 06:59, Robert Moskowitz wrote:
On 5/8/20 2:24 AM, Gordon Messmer wrote:
On 5/7/20 10:44 PM, Jon LaBadie wrote:
In my mail files each message is followed by a blank line
before the next "From_" line. Is that a requirement of
mbox format? If so, it may be necessary to add it to
On 08May2020 06:56, Robert Moskowitz wrote:
On 5/8/20 2:08 AM, Cameron Simpson wrote:
You _do_ need to ensure the message at least ends with a newline, of
the From_ won't be at the start of a line. So the previously posted
script ensures that with the "echo" in "( cat; echo )". If you want to
On 5/8/20 11:08 AM, Robert Moskowitz wrote:
On 5/8/20 1:58 PM, Mike Wright wrote:
There's a tiny MDA called femtomail that delivers into a Maildir.
Well first I need mbox, not maildir format.
mutt can read Maildir as well. Maildir is a much better mail storage
method than mbox.
Provide i
On 5/8/20 2:01 PM, Samuel Sieb wrote:
On 5/8/20 10:58 AM, Mike Wright wrote:
On 5/8/20 9:55 AM, Robert Moskowitz wrote:
On 5/8/20 12:39 PM, Tim via users wrote:
On Fri, 2020-05-08 at 06:56 -0400, Robert Moskowitz wrote:
Plus I have always thought of this as a deficiency in cron on a
works
On 5/8/20 1:58 PM, Mike Wright wrote:
On 5/8/20 9:55 AM, Robert Moskowitz wrote:
On 5/8/20 12:39 PM, Tim via users wrote:
On Fri, 2020-05-08 at 06:56 -0400, Robert Moskowitz wrote:
Plus I have always thought of this as a deficiency in cron on a
workstation. Cron should work (report in thi
On 5/8/20 10:58 AM, Mike Wright wrote:
On 5/8/20 9:55 AM, Robert Moskowitz wrote:
On 5/8/20 12:39 PM, Tim via users wrote:
On Fri, 2020-05-08 at 06:56 -0400, Robert Moskowitz wrote:
Plus I have always thought of this as a deficiency in cron on a
workstation. Cron should work (report in this
On 5/8/20 9:55 AM, Robert Moskowitz wrote:
On 5/8/20 12:39 PM, Tim via users wrote:
On Fri, 2020-05-08 at 06:56 -0400, Robert Moskowitz wrote:
Plus I have always thought of this as a deficiency in cron on a
workstation. Cron should work (report in this case) properly
without needing somethin
On 5/8/20 12:39 PM, Tim via users wrote:
On Fri, 2020-05-08 at 06:56 -0400, Robert Moskowitz wrote:
Plus I have always thought of this as a deficiency in cron on a
workstation. Cron should work (report in this case) properly
without needing something else (MTA) installed.
Does it though? Th
On Fri, 2020-05-08 at 06:56 -0400, Robert Moskowitz wrote:
> Plus I have always thought of this as a deficiency in cron on a
> workstation. Cron should work (report in this case) properly
> without needing something else (MTA) installed.
Does it though? There's always /var/log/cron. Or that ot
On 5/8/20 10:03 AM, Jon LaBadie wrote:
On Thu, May 07, 2020 at 11:24:41PM -0700, Gordon Messmer wrote:
On 5/7/20 10:44 PM, Jon LaBadie wrote:
In my mail files each message is followed by a blank line
before the next "From_" line. Is that a requirement of
mbox format? If so, it may be necess
On Thu, May 07, 2020 at 11:24:41PM -0700, Gordon Messmer wrote:
> On 5/7/20 10:44 PM, Jon LaBadie wrote:
> > In my mail files each message is followed by a blank line
> > before the next "From_" line. Is that a requirement of
> > mbox format? If so, it may be necessary to add it to
> > the cronta
On 5/8/20 6:04 AM, Tim via users wrote:
On Fri, 2020-05-08 at 01:44 -0400, Jon LaBadie wrote:
In my mail files each message is followed by a blank line
before the next "From_" line. Is that a requirement of
mbox format? If so, it may be necessary to add it to
the crontab output.
It's how mb
Hi.
On Fri, 08 May 2020 06:56:58 -0400 Robert Moskowitz wrote:
> On 5/8/20 2:08 AM, Cameron Simpson wrote:
>> You _do_ need to ensure the message at least ends with a newline, of
>> the From_ won't be at the start of a line. So the previously posted
>> script ensures that with the "echo" in "(
On 5/8/20 2:24 AM, Gordon Messmer wrote:
On 5/7/20 10:44 PM, Jon LaBadie wrote:
In my mail files each message is followed by a blank line
before the next "From_" line. Is that a requirement of
mbox format? If so, it may be necessary to add it to
the crontab output.
Yes, it's a requirement
On 5/8/20 2:08 AM, Cameron Simpson wrote:
On 08May2020 01:44, Jon LaBadie wrote:
On Fri, May 08, 2020 at 09:57:33AM +1000, Cameron Simpson wrote:
On 07May2020 15:01, Robert Moskowitz wrote:
> /ustr/sbin/mycron:
> #!/bin/sh
>
> currentDate="$(date +'%a %b %d %T %Y')"
> echo "From cron@localh
On 5/8/20 1:16 AM, Tim via users wrote:
On Thu, 2020-05-07 at 09:09 -0500, Roger Heflin wrote:
In general if you set up the cronjobs to redirect stdout and stderr
to a file then typically there is nothing to email.
Just thinking out loud: If your scripts generate their own logs, you
see the
On Fri, 2020-05-08 at 01:44 -0400, Jon LaBadie wrote:
> In my mail files each message is followed by a blank line
> before the next "From_" line. Is that a requirement of
> mbox format? If so, it may be necessary to add it to
> the crontab output.
It's how mbox works, each email is concatenated
On 5/7/20 10:44 PM, Jon LaBadie wrote:
In my mail files each message is followed by a blank line
before the next "From_" line. Is that a requirement of
mbox format? If so, it may be necessary to add it to
the crontab output.
Yes, it's a requirement of the format. That's why there's an "echo
On 08May2020 01:44, Jon LaBadie wrote:
On Fri, May 08, 2020 at 09:57:33AM +1000, Cameron Simpson wrote:
On 07May2020 15:01, Robert Moskowitz wrote:
> /ustr/sbin/mycron:
> #!/bin/sh
>
> currentDate="$(date +'%a %b %d %T %Y')"
> echo "From cron@localhost "$currentDate >> /var/spool/mail/$USER
On Fri, May 08, 2020 at 09:57:33AM +1000, Cameron Simpson wrote:
> On 07May2020 15:01, Robert Moskowitz wrote:
> > /ustr/sbin/mycron:
> > #!/bin/sh
> >
> > currentDate="$(date +'%a %b %d %T %Y')"
> > echo "From cron@localhost "$currentDate >> /var/spool/mail/$USER
>
> Put $currentDate inside th
On Thu, 2020-05-07 at 09:09 -0500, Roger Heflin wrote:
> In general if you set up the cronjobs to redirect stdout and stderr
> to a file then typically there is nothing to email.
Just thinking out loud: If your scripts generate their own logs, you
see the results of your scripts. But if cron gen
On 07May2020 15:01, Robert Moskowitz wrote:
/ustr/sbin/mycron:
#!/bin/sh
currentDate="$(date +'%a %b %d %T %Y')"
echo "From cron@localhost "$currentDate >> /var/spool/mail/$USER
Put $currentDate inside the quotes. With echo it is less of an issue,
but for many other commands you should exer
On 07May2020 12:43, Joe Zeff wrote:
On 05/07/2020 08:04 AM, Robert Moskowitz wrote:
So all I need is a script at /usr/bin/mycron
Actually, you can put it wherever you want, including ~/bin, as long
as you give the complete path. /usr/bin may be the best place, but
it's not the only place.
On 07May2020 07:38, Robert Moskowitz wrote:
On 5/6/20 11:06 PM, Gordon Messmer wrote:
Technically, no. If you only want to deliver the messages locally,
then you only need an MDA, not an MTA. In fact, you could just create
/usr/sbin/sendmail as a simple shell script:
#!/bin/sh
(cat; echo)
On 07May2020 09:25, Robert Moskowitz wrote:
The bottom of that manual entry describes the "mta" setting, and
says that esmtp relies on a local MTA for local delivery (addresses
without an "@"). So you'll need something additional anyway. May as
well go straight to a proper MTA.
And then, to
/ustr/sbin/mycron:
#!/bin/sh
currentDate="$(date +'%a %b %d %T %Y')"
echo "From cron@localhost "$currentDate >> /var/spool/mail/$USER
(cat; echo) >> /var/spool/mail/$USER
/etc/sysconfig/crond:
# Settings for the CRON daemon.
# CRONDARGS= : any extra command-line startup arguments for crond
C
On 05/07/2020 08:04 AM, Robert Moskowitz wrote:
So all I need is a script at /usr/bin/mycron
Actually, you can put it wherever you want, including ~/bin, as long as
you give the complete path. /usr/bin may be the best place, but it's
not the only place. Just a thought.
___
I have dug a bit into mbox fomat and looked at one system that has some
mail in root's mbox.
It SEEMs that what I am missing is a FROM: line at the beginning that
mutt can handle. Perhaps something like:
From cron@localhost Thu May 07 13:15:01 2020
Note no colon after 'From' and a timestam
On 5/7/20 1:24 PM, Alexander Dalloz wrote:
Am 07.05.2020 um 02:11 schrieb Robert Moskowitz:
Cameron,
Oh I have done a lot with postfix:
http://www.htt-consult.com/Centos7-mailserver.html
Showing a broken / incomplete submission and submissions setup in
master.cf of Postfix.
Notice it sa
Am 07.05.2020 um 02:11 schrieb Robert Moskowitz:
Cameron,
Oh I have done a lot with postfix:
http://www.htt-consult.com/Centos7-mailserver.html
Showing a broken / incomplete submission and submissions setup in
master.cf of Postfix.
Alexander
___
First I made a script at /usr/sbin/mycron
#!/bin/sh
(cat; echo) >> /var/spool/mail/$USER
Then I changed cat /etc/sysconfig/crond
# Settings for the CRON daemon.
# CRONDARGS= : any extra command-line startup arguments for crond
CRONDARGS= -m "/usr/sbin/mycron"
And restarted crond
Next I cha
In general if you set up the cronjobs to redirect stdout and stderr to
a file then typically there is nothing to email.
Often if you have only a few systems this is easier to use.
On Thu, May 7, 2020 at 8:29 AM Robert Moskowitz wrote:
>
>
>
> On 5/7/20 7:48 AM, Robert Moskowitz wrote:
> >
> >
>
On 5/7/20 9:25 AM, Robert Moskowitz wrote:
On 5/7/20 7:48 AM, Robert Moskowitz wrote:
On 5/6/20 11:34 PM, Cameron Simpson wrote:
On 07May2020 13:19, Cameron Simpson wrote:
On 06May2020 20:20, Robert Moskowitz wrote:
I am reading up on esmtp which comes with the base install and
seemin
On 5/7/20 7:48 AM, Robert Moskowitz wrote:
On 5/6/20 11:34 PM, Cameron Simpson wrote:
On 07May2020 13:19, Cameron Simpson wrote:
On 06May2020 20:20, Robert Moskowitz wrote:
I am reading up on esmtp which comes with the base install and
seemingly no mta needed?
Anyway
https://linux.die.
On Thu, 7 May 2020 at 08:49, Robert Moskowitz wrote:
>
>
> On 5/6/20 11:34 PM, Cameron Simpson wrote:
> > On 07May2020 13:19, Cameron Simpson wrote:
> >> On 06May2020 20:20, Robert Moskowitz wrote:
> >>> I am reading up on esmtp which comes with the base install and
> >>> seemingly no mta neede
On 5/6/20 11:34 PM, Cameron Simpson wrote:
On 07May2020 13:19, Cameron Simpson wrote:
On 06May2020 20:20, Robert Moskowitz wrote:
I am reading up on esmtp which comes with the base install and
seemingly no mta needed?
Anyway
https://linux.die.net/man/5/esmtprc
shows how to config for sen
On 5/6/20 11:06 PM, Gordon Messmer wrote:
On 5/6/20 3:00 PM, Robert Moskowitz wrote:
Do I need something like postfix with a minimal installation to get
the output from my crontab?
Technically, no. If you only want to deliver the messages locally,
then you only need an MDA, not an MTA.
On 07May2020 13:19, Cameron Simpson wrote:
On 06May2020 20:20, Robert Moskowitz wrote:
I am reading up on esmtp which comes with the base install and
seemingly no mta needed?
Anyway
https://linux.die.net/man/5/esmtprc
shows how to config for sending an email via esmtp to an mta, but
not ju
On 06May2020 20:20, Robert Moskowitz wrote:
I am reading up on esmtp which comes with the base install and
seemingly no mta needed?
Anyway
https://linux.die.net/man/5/esmtprc
shows how to config for sending an email via esmtp to an mta, but not
just local delivery...
The bottom of that man
On 5/6/20 3:00 PM, Robert Moskowitz wrote:
Do I need something like postfix with a minimal installation to get
the output from my crontab?
Technically, no. If you only want to deliver the messages locally, then
you only need an MDA, not an MTA. In fact, you could just create
/usr/sbin/sen
On 06May2020 20:11, Robert Moskowitz wrote:
Oh I have done a lot with postfix:
http://www.htt-consult.com/Centos7-mailserver.html
Excellent.
On 5/6/20 7:28 PM, Cameron Simpson wrote:
With postfix, I put the following settings at the top of
/etc/postfix/main.cf:
better to use the
postcon
On 5/6/20 7:28 PM, Cameron Simpson wrote:
On 06May2020 18:15, Robert Moskowitz wrote:
On 5/6/20 6:08 PM, ToddAndMargo via users wrote:
MAILTO=rgm
[...]
Can you point me to some guide for this? Local delivery for viewing
with mutt is ok. I don't have to send it to my mail server
send
Cameron,
Oh I have done a lot with postfix:
http://www.htt-consult.com/Centos7-mailserver.html
On 5/6/20 7:28 PM, Cameron Simpson wrote:
On 06May2020 18:15, Robert Moskowitz wrote:
On 5/6/20 6:08 PM, ToddAndMargo via users wrote:
MAILTO=rgm
[...]
Can you point me to some guide for this? Lo
On 06May2020 18:15, Robert Moskowitz wrote:
On 5/6/20 6:08 PM, ToddAndMargo via users wrote:
MAILTO=rgm
[...]
Can you point me to some guide for this? Local delivery for viewing
with mutt is ok. I don't have to send it to my mail server
sendmail would take me running postfix locally.
On 5/6/20 3:15 PM, Robert Moskowitz wrote:
Can you point me to some guide for this? Local delivery for viewing
with mutt is ok. I don't have to send it to my mail server
sendmail would take me running postfix locally.
Or would sendmail work for local store delivery? Hmm.
You need some
On 2020-05-06 15:15, Robert Moskowitz wrote:
On 5/6/20 6:08 PM, ToddAndMargo via users wrote:
On 2020-05-06 15:00, Robert Moskowitz wrote:
I know I can edit the user crontab with:
crontab -e
and display it with
crontab -l
But where is it? I don't see anything like ~/.crontab
On 5/6/20 6:08 PM, ToddAndMargo via users wrote:
On 2020-05-06 15:00, Robert Moskowitz wrote:
I know I can edit the user crontab with:
crontab -e
and display it with
crontab -l
But where is it? I don't see anything like ~/.crontab
Hi Robert,
Your crontab files are in
# ls
On Wed, 6 May 2020 18:00:45 -0400
Robert Moskowitz wrote:
> But where is it?
/var/spool/cron/user-name
> Do I need something like postfix with a minimal installation to get the
> output from my crontab?
You need some kind of mail software, postfix might be overkill
(but is certainly easier to
On 2020-05-06 15:00, Robert Moskowitz wrote:
I know I can edit the user crontab with:
crontab -e
and display it with
crontab -l
But where is it? I don't see anything like ~/.crontab
Hi Robert,
Your crontab files are in
# ls /var/spool/cron
root tom dick harry
The user's cr
I know I can edit the user crontab with:
crontab -e
and display it with
crontab -l
But where is it? I don't see anything like ~/.crontab
Secondly, and more importantly, is getting a email from the user
crontab. I have in my crontab:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/us
62 matches
Mail list logo