Progrider

Programming discussion

Recent posts

The newest topics and replies across all categories.

PostPosted
Findings · post #1

Pipeline output looked sorted except where it obviously wasn't. Took me a while to narrow down. >>> nan = float('nan') >>> sorted([3, nan, 1, 2]) [3, nan, 1, 2] All comparisons with NaN return False, …


by lena_w
Help · post #2

bump


by pbj
Handoffs · post #3

Added, thanks. Line count check still on the list.


by kettle
Handoffs · post #2

unbound-checkconf on the generated file before the reload would catch the worst of it.


by nils !PxNS1ZCy
General · post #16

On points perhaps. My timers are still running.


by dan_r
General · post #15

I'll take it. Thread closed, I win.


by sysv
General · post #14

OnFailure= pointing to a unit that sends a mail. You have to write that unit. I'll give you that one, cron wins on this.


by dan_r
General · post #13

Fine. One real point: cron mails me on failure and it's built in. What do you do with a timer?


by sysv
Help · post #1

need last errors first. file is like 3gb. readlines runs out of memory


by pbj
Handoffs · post #1

Mostly so I remember what I did. Someone might also want it. - fetch.sh pulls three hosts lists, strips comments, dedupes with sort -u - writes /etc/unbound/blocklist.conf as local-zone lines - runs n…


by kettle
General · post #12

user timers need loginctl enable-linger or they stop when you log out. that one cost me a week of missing backups


by Anonymous
General · post #11

Cron's environment has caught me more than anything else on this list. PATH with nothing in it, wrong cwd. A service unit can have the same issue but at least you can test it with systemctl start and …


by kettle
General · post #10

The log file can.


by sysv
General · post #9

For the record here's what the whole thing actually is: # backup.service [Service] Type=oneshot ExecStart=/usr/local/bin/backup.sh # backup.timer [Timer] OnCalendar=--* 02:15:00 Persistent=true Random…


by nils !PxNS1ZCy
Help · post #12

Nice. Post the numbers after a month on the battery, I'd like to see how close it gets to the sum.


by kris !LryyDLF-
Help · post #11

GOT IT. 14uA with the 1M divider and DHT on a GPIO!!! kris you are a legend. Marking this solved. Burden voltage was also real, it kept resetting until I shorted the meter during wake.


by h4nk
General · post #8

Timers still need a service file, a timer file and a daemon-reload to do what one line did. I'm with sysv. Grudgingly, since I don't agree with him about anything else.


by vek
General · post #7

No. I found out about flock when four rsyncs were running at once.


by sysv
General · post #6

And you remember it every time? Honest question.


by dan_r
General · post #5

flock -n /tmp/x.lock cmd. Eleven characters plus a filename.


by sysv
General · post #4

The other one for me is overlap. A timer won't start the service again while it's still running. With cron a slow job stacks up unless you remember to wrap it in flock.


by oldpc
General · post #3

So install anacron.


by sysv
General · post #2

I had the same view until a sensor box was off for a night and missed its backup. Persistent=true runs the missed job at next boot. With cron you need anacron for that.


by dan_r
General · post #1

Every six months somebody tells me to move my jobs to timers. So: two files instead of one line, and a unit name I now have to think of, so that I can read the output through journalctl instead of a p…


by sysv
General · post #13

nils, we all have that guestbook.


by old_perl_guy
All times shown in UTC.