117 reputation
12
bio website
location
age 28
visits member for 1 year, 2 months
seen 20 hours ago

1d
accepted Why Does a Shell Script Trapping SIGTERM Work When Run Manually, But Not When Run via launchd?
1d
comment Why Does a Shell Script Trapping SIGTERM Work When Run Manually, But Not When Run via launchd?
Turn out that as of Yosemite this is now the correct answer; a launch agent or launch daemon that is sleeping (asynchronously) with a suitable trap (must be SIGINT, not INT) will receive the signal prior to being unloaded. Of course this is no good for Mavericks, Mountain Lion etc., but it's great that this finally works as it should, so I'm marking this is the correct answer, but it might be worth editing in that it only works correctly under 10.10.
1d
answered Run Script on Logout Without Use of Logout Hook
Oct
15
comment Launchd Multicast Socket Listener
You can test sending of a UDP message by doing something like echo 'My message' | nc -uw 1 localhost 6000 to send the message to a service listening to port 6000 on your local machine. Not sure if nc supports sending multicast messages (I don't see an option) but it lets you test when sending directly to a single machine.
Oct
9
comment Launchd Multicast Socket Listener
Thanks for the response! Were you able to verify this in any way? I've given the same basic file a try, simply using cat as the program and redirecting stdout and stderr (using the appropriate plist keys) but it's not producing any output. Instead I'm getting a bunch of "no such file or directory" errors from execv(). I've tried replacing cat with a simple shell script and confirmed the correct path, but that won't work either.
Oct
7
revised Change Default Audio Device
added 1 character in body
Oct
7
accepted Time Machine is Determined to Delete Old Backups to Make Space it Doesn't Need
Oct
7
comment Run Script on Logout Without Use of Logout Hook
Thanks for giving it as an alternative anyway, but my concern is that login and logout hooks have been deprecated for the last few versions of OS X; although I expect they still function in Yosemite (since it's mostly focused on the UI and Continuity changes) it seems like it could go at any time, like the old startup items being replaced by launchd, just a shame it doesn't have RunBeforeUnload or similar option.
Oct
5
asked Run Script on Logout Without Use of Logout Hook
Oct
5
answered Time Machine is Determined to Delete Old Backups to Make Space it Doesn't Need
Oct
3
comment Time Machine is Determined to Delete Old Backups to Make Space it Doesn't Need
Feck, I think I've figured out why Time Machine was trying to back-up so much; turns out the last "complete" back-up wasn't as complete as Time Machine things, as my entire user folder is empty (on the back-up). I've used tmutil delete to get rid of it so hopefully it should go back to normal!
Oct
3
comment Time machine wants to backup too much
Thanks for this (and linking from own question); I was considering having to do something similar, but when "nursing" the backup in this way should I be stopping the back-up before it actually completes, and then removing exclusions and resuming? Otherwise wouldn't I end up with a back-up where the excluded files are missing and Time Machine simply treats them as new in the subsequent passes?
Oct
2
revised Time Machine is Determined to Delete Old Backups to Make Space it Doesn't Need
added 182 characters in body
Oct
2
asked Time Machine is Determined to Delete Old Backups to Make Space it Doesn't Need
Sep
23
asked Change Default Audio Device
Sep
9
awarded  Popular Question
Aug
2
accepted sudo: unable to cache user root, already exists
Aug
2
accepted Exponential Slowdown of Applescript
Aug
2
answered Exponential Slowdown of Applescript
Jul
17
comment Copying ISO file to USB drive in OS X?
I've been trying to use dd to copy a Windows 7 install DVD to a partition on a USB disk, but it always results in an unmountable partition, any ideas why this would be? The data appears to copy without any issues, and the source image is a .dmg, and the partition is already FAT32 (not sure if that part matters?) but the finished partition just won't mount anything.