On 2/13/20 8:24 PM, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 13/02/2020 17.09, Dave Howorth wrote:
On Thu, 13 Feb 2020 15:26:40 +0200 ellanios82 <> wrote:
what am i doing wrong?? : Why zero output from cron??
Well cron jobs don't usually produce any output, because they're designed not to. So you probably need to explain exactly what you're doing and exactly what output you are expecting/used to get. Yes they do, specially since systemd.
<10.6> 2020-02-13 19:00:01 Telcontar cron 10631 - - pam_unix(crond:session): session opened for user cer by (uid=0) <3.6> 2020-02-13 19:00:01 Telcontar dbus-daemon 1449 - - [system] Successfully activated service 'org.opensuse.Snapper' <10.6> 2020-02-13 19:00:01 Telcontar cron 10632 - - pam_unix(crond:session): session opened for user cer by (uid=0) <9.6> 2020-02-13 19:00:01 Telcontar CRON 10681 - - (cer) CMD (/home/cer/bin/dar_la_hora_en_cron hora) <10.6> 2020-02-13 19:00:02 Telcontar CRON 10631 - - pam_unix(crond:session): session closed for user cer <10.6> 2020-02-13 19:00:06 Telcontar CRON 10632 - - pam_unix(crond:session): session closed for user cer
That's six lines of output for a job of mine (it speaks the hour).
Another job:
<9.6> 2020-02-13 18:20:01 Telcontar CRON 8946 - - (root) CMD ([ -x /usr/lib64/sa/sa1 ] && exec /usr/lib64/sa/sa1 1 1) <10.6> 2020-02-13 18:20:01 Telcontar cron 8944 - - pam_unix(crond:session): session opened for user cer by (uid=0) <10.6> 2020-02-13 18:20:01 Telcontar CRON 8944 - - pam_unix(crond:session): session closed for user cer
Weekly jobs:
<9.6> 2020-02-06 21:30:01 Telcontar CRON 5102 - - (root) CMD ([ -x /usr/lib64/sa/sa1 ] && exec /usr/lib64/sa/sa1 1 1) <10.6> 2020-02-06 21:30:01 Telcontar cron 5100 - - pam_unix(crond:session): session opened for user cer by (uid=0) <9.6> 2020-02-06 21:30:01 Telcontar CRON 5119 - - (cer) CMD (/home/cer/bin/dar_la_hora_en_cron hora) <3.6> 2020-02-06 21:30:01 Telcontar systemd 1 - - Stopping Name Service Cache Daemon... <3.6> 2020-02-06 21:30:01 Telcontar systemd 1 - - Stopped Name Service Cache Daemon. <3.6> 2020-02-06 21:30:01 Telcontar systemd 1 - - Starting Name Service Cache Daemon... <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring file `/etc/passwd` (1) <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring directory `/etc` (2) <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring file `/etc/group` (3) <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring directory `/etc` (2) <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring file `/etc/hosts` (4) <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring directory `/etc` (2) <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring file `/etc/resolv.conf` (5) <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring directory `/etc` (2) <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring file `/etc/services` (6) <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring directory `/etc` (2) <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring file `/etc/netgroup` (7) <3.5> 2020-02-06 21:30:01 Telcontar nscd - - - 5164 monitoring directory `/etc` (2) <3.6> 2020-02-06 21:30:01 Telcontar systemd 1 - - Started Name Service Cache Daemon. <1.6> 2020-02-06 21:30:01 Telcontar run-crons 5103 - - mine-nscd: OK <9.6> 2020-02-06 21:30:01 Telcontar run-crons.weekly - - - Considering my weekly cron jobs. <1.6> 2020-02-06 21:30:01 Telcontar run-crons 5103 - - mio.weekly: OK <10.6> 2020-02-06 21:30:06 Telcontar CRON 5100 - - pam_unix(crond:session): session closed for user cer <9.6> 2020-02-06 21:40:01 Telcontar CRON 5573 - - (root) CMD ([ -x /usr/lib64/sa/sa1 ] && exec /usr/lib64/sa/sa1 1 1) <10.6> 2020-02-06 21:40:01 Telcontar cron 5570 - - pam_unix(crond:session): session opened for user cer by (uid=0) <10.6> 2020-02-06 21:40:01 Telcontar CRON 5570 - - pam_unix(crond:session): session closed for user cer <9.6> 2020-02-06 21:50:01 Telcontar CRON 5998 - - (root) CMD ([ -x /usr/lib64/sa/sa1 ] && exec /usr/lib64/sa/sa1 1 1) <9.6> 2020-02-06 22:00:01 Telcontar CRON 6344 - - (root) CMD ([ -x /usr/lib64/sa/sa1 ] && exec /usr/lib64/sa/sa1 1 1)
In ellanios case he has to find older entries, and show them here, then find out when they disappear.
- thanks vm Carlos - here is cron journal-output for Feb 05 , when email notification came OK for running rkhunter at 12:48 : aig:~ # journalctl | grep cron Feb 05 12:38:02 aig cron[15504]: pam_unix(crond:session): session opened for user root(uid=0) by (uid=0) Feb 05 12:38:02 aig CRON[15524]: (root) CMD (exec /usr/bin/rkhunter --cronjob --update --rwo) Feb 05 12:40:01 aig cron[26953]: pam_unix(crond:session): session opened for user root(uid=0) by (uid=0) Feb 05 12:40:01 aig CRON[26953]: pam_unix(crond:session): session closed for user root Feb 05 12:43:54 aig ** Notifications got thru to /var/spool/mail/my-local-folder until Feb 08 , after which nothing : cannot see what has changed in my thunderbird Mail set-up Now, today , rkhunter 12:38 still Nothing : .. Feb 13 10:50:43 aig cron[2077]: (CRON) INFO (running with inotify support) Feb 13 12:38:02 aig cron[14764]: pam_unix(crond:session): session opened for user root(uid=0) by (uid=0) Feb 13 12:38:02 aig CRON[14782]: (root) CMD (exec /usr/bin/rkhunter --cronjob --update --rwo) Feb 13 12:40:01 aig cron[28461]: pam_unix(crond:session): session opened for user root(uid=0) by (uid=0) Feb 13 12:40:02 aig CRON[28461]: pam_unix(crond:session): session closed for user root Feb 13 12:43:21 aig CRON[14764]: pam_unix(crond:session): session closed for user root ......... my crontab says : "MAILTO=pisti@localhost" : that's OK : my folder in /var/spool/mail ..... thanks -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org