Reputation
762
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
1 6 23
Impact
~148k people reached

  • 0 posts edited
  • 0 helpful flags
  • 39 votes cast
Dec
12
asked extract last match from logfile till end
Nov
8
comment Tell fs to free space from deleted files NOW
Marking as closest answer, although never really "gave back" the space immediately after closing file handles/processes using them. Looking for other kernel/proc/fs-based approaches.
Nov
8
accepted Tell fs to free space from deleted files NOW
Nov
8
awarded  Notable Question
Nov
5
revised crontab and DST disagreement with different timezone
Fixed nasty bash error "15 - 09: value too great for base" when 0* numbers treated as octal
Nov
5
comment crontab and DST disagreement with different timezone
In some cases got /bin/bash: 15 - 09: value too great for base (error token is "09") due to subtle problem of bash treatment of numbers beginning with 0 as octal. Fixed by preceding 10# to numbers.
Nov
4
accepted crontab and DST disagreement with different timezone
Nov
2
revised crontab and DST disagreement with different timezone
logic test was reversed
Nov
1
comment crontab and DST disagreement with different timezone
Um, the opposite of what I last wrote.
Nov
1
comment crontab and DST disagreement with different timezone
I don't like that 1. this isn't a host-timezone-indifferent solution, and 2. assumes the difference will never be greater than six hours, i.e., that DST in Poland will always end first and start last.
Nov
1
comment crontab and DST disagreement with different timezone
The idea is that for most of the year, a 1-hour wait will not be in effect. Only during the few weeks of a 5-hour difference (whether spring or fall), rather than the typical 6, will sleep 3600 be executed.
Nov
1
comment crontab and DST disagreement with different timezone
Minor update. en.wikipedia.org/wiki/Tz_database implies that since the DST rules for each zone are published into the TZ database, any up-to-date UNIX server should already have bundled knowledge of the wall clock time anywhere else in the world without having to consult over the network.
Nov
1
answered crontab and DST disagreement with different timezone
Nov
1
comment crontab and DST disagreement with different timezone
Thanks for the kluge; 9am was only a simplified example, in reality I have tasks sprinkled all over the clock and calendar. Developing on your idea, rather than stuffing my much longer, nastier crontab line into an if block, I could merely precede my commands with: ` [ $[$(date +%H) - $(TZ=":US/Eastern" date +%H)] == 5 ] && sleep 3600; w` where w is what I want to run at the right time
Nov
1
revised crontab and DST disagreement with different timezone
added 286 characters in body; edited title
Nov
1
comment crontab and DST disagreement with different timezone
No; I don't want all, and according to some other posts, TZ doesn't necessarily affect crontab (in Ubuntu which I use it doesn't), unlike for date eg. TZ=":US/Eastern" date +%Y%m%d
Nov
1
asked crontab and DST disagreement with different timezone
Sep
4
awarded  Popular Question
Jul
10
answered history list in bash always truncated to 5000 lines at new login
Jul
5
answered How do I background an SSH session?