Re: user crontab

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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 results of your scripts.  But if cron generates its logs, you
see the results of cron executing your scripts.  Might there be a
difference beyond the obvious of knowing it was run by cron?
I kind of have it working.

There is a bit of valuable info in the headers from cron.

I have to modify my script to add a Date: line, but:



From cron@localhost  Fri May 08 04:01:10 2020
From: "(Cron Daemon)" <rgm>
To: rgm
Subject: Cron <rgm@lx140e> rsync -tvz rsync.tools.ietf.org::tools.id/*.txt /home
/common/ietf/drafts
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=273>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/1000>
X-Cron-Env: <DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus>
X-Cron-Env: <XDG_SESSION_TYPE=unspecified>
X-Cron-Env: <XDG_SESSION_CLASS=background>
X-Cron-Env: <LANG=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=rgm>
X-Cron-Env: <HOME=/home/rgm>
X-Cron-Env: <LOGNAME=rgm>
X-Cron-Env: <USER=rgm>
Status: RO
Content-Length: 1212
Lines: 32

1id-abstracts.txt
skipping non-regular file "code.txt"
1id-index.txt
all_id.txt
all_id2.txt
draft-bdc-something-something-certificate-04.txt
draft-chen-top-level-interface-protocol-01.txt
draft-iesg-nomcom-eligibility-2020-03.txt
draft-ietf-cbor-date-tag-00.txt
draft-ietf-ccamp-layer0-types-04.txt
draft-ietf-i2nsf-nsf-facing-interface-dm-09.txt
draft-ietf-i2nsf-nsf-monitoring-data-model-03.txt
draft-ietf-idr-bgp-bfd-strict-mode-03.txt
draft-ietf-lisp-predictive-rlocs-06.txt
draft-ietf-lsvr-l3dl-04.txt
draft-ietf-mpls-lsp-ping-ospfv3-codepoint-02.txt
draft-ietf-opsawg-sdi-09.txt
draft-ietf-roll-aodv-rpl-08.txt
draft-ietf-spring-segment-routing-policy-07.txt
draft-ietf-tsvwg-datagram-plpmtud-20.txt
draft-irtf-icnrg-icn-lte-4g-06.txt
draft-jeong-ipwave-context-aware-navigator-01.txt
draft-jeong-ipwave-iot-dns-autoconf-08.txt
draft-jeong-ipwave-security-privacy-01.txt
draft-jeong-ipwave-vehicular-mobility-management-03.txt
draft-jeong-ipwave-vehicular-neighbor-discovery-09.txt
draft-yang-i2nsf-security-policy-translation-06.txt
draft-zheng-ccamp-client-pm-yang-01.txt
replaced_id.txt

sent 36,590 bytes  received 5,737,944 bytes  427,743.26 bytes/sec
total size is 6,540,286,093  speedup is 1,132.61

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux