- or download this
$ crontab -l
# Edit this file to introduce tasks to be run by cron.
...
# m h dom mon dow command
*/17 * * * * hostname | socat -s - UDP-DATAGRAM:255.255.255.255:12340
+,broadcast 2>/dev/null
$
- or download this
#!/usr/bin/env perl
use warnings;
use strict;
...
Data::Dumper->new( [ '' . shift ] )->Terse(1)->Useqq(1)->Dump );
return $s;
}
- or download this
$ ./2.udplisten.pl -m -c 2
Start time is: 23:30:43
rx is mypi
...
Time is: 23:51:01
0 years, 00 months, 0 days, 00 hours, 20 minutes, 18 seconds
$
- or download this
# patch 4/20/2022
-*.*;auth,authpriv.none -/var/log/syslog
+*.*;cron,auth,authpriv.none -/var/log/syslog
- or download this
Apr 20 16:41:59 mypi systemd[1]: Stopped System Logging Service.
Apr 20 16:41:59 mypi systemd[1]: Starting System Logging Service...
Apr 20 16:41:59 mypi rsyslogd: error during parsing file /etc/rsyslog.
+conf, on or before line 94: errors occured in file '/etc/rsyslog.conf
+' around line 94 [v8.1901.0 try https://www.rsyslog.com/e/2207 ]
Apr 20 16:41:59 mypi rsyslogd: error during parsing file /etc/rsyslog.
+conf, on or before line 95: invalid character '+' - is there an inval
+id escape sequence somewhere? [v8.1901.0 try https://www.rsyslog.com/
+e/2207 ]
Apr 20 16:41:59 mypi systemd[1]: Started System Logging Service.
- or download this
###############
#### RULES ####
###############
...
lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log