176 reputation
5
bio website
location
age
visits member for 2 years
seen Jul 23 at 14:54

It's musiKk (6D, 75, 73, 69, 4B, 6B). Not music, musik, musick, musikK, musikk, musickk, etc...

GitHub


Jun
24
comment “mv” command— file vanished into non-directory
And while we're at it: You need to put at least a colon at the end of the remote target (useful for copying something to a remote home directory) or scp works just like cp. Happens to me all the time and I always wonder briefly why my file isn't there.
Apr
8
accepted How to add new elements to PATH for daemons (or other best practices)?
Apr
8
awarded  Scholar
Apr
8
comment Can I safely read a file that is appended to by another process?
I accepted the other answer simply because it was there first. The essence is the same. Thank you, too!
Apr
8
accepted Can I safely read a file that is appended to by another process?
Apr
8
comment Can I safely read a file that is appended to by another process?
"B has no way to know" Yes, that's what I am/was unsure about. Sometimes there is magic. You can for example delete a file that's open; the actual file is removed once the last file descriptor is closed (at least that's what I read). Likewise the read() syscall could have been implemented to block instead of returning EOF if there is another FD in writing mode positioned at the end of the file or somesuch. Since there is no indication of that, I'll continue to use staging.
Apr
7
comment How to add new elements to PATH for daemons (or other best practices)?
Yep, sounds better that way. Thanks.
Apr
7
comment How to add new elements to PATH for daemons (or other best practices)?
I guessed as much but it's nice to have some confirmation. I also wasn't aware that /etc/environment is part of PAM. Thanks.
Apr
7
asked How to add new elements to PATH for daemons (or other best practices)?
Apr
7
awarded  Student
Apr
7
comment Can I safely read a file that is appended to by another process?
@JoelDavis: The postgres part is just background; it could be anything. The copying is completely under my control. In fact currently I do create a temp file first and rename it once copy is done. But if that is not necessary, I wouldn't mind throwing this bit of complexity out of my scripts. :)
Apr
7
asked Can I safely read a file that is appended to by another process?
Jan
8
awarded  Supporter
Nov
11
awarded  Quorum
Jul
26
awarded  Teacher
May
12
answered How to run a specific program as root without a password prompt?