203 reputation
1312
bio website cparker15.com
location Boston, MA
age 31
visits member for 5 years, 4 months
seen yesterday

“JavaScript jockey and Free software advocate”

FSF Associate Member #795
Join the FSF as an Associate Member!

Where I Am:

StackExchange Profiles:


Jun
10
comment Linux: Schedule command to run once after reboot (RunOnce equivalent)
@Dennis: Actually, based on crontab.c, I think my patterns are just fine. (Search for "DO NOT EDIT THIS FILE" at opensource.apple.com/source/cron/cron-35/crontab/crontab.c.)
Jun
10
comment Linux: Schedule command to run once after reboot (RunOnce equivalent)
@Dennis: Got it, thanks. Coincidentally, local3 is the local facility that appears in man logger.
Jun
10
comment Linux: Schedule command to run once after reboot (RunOnce equivalent)
What made you choose local3, versus any of the other facilities between 0 and 7?
Jun
9
comment Linux: Schedule command to run once after reboot (RunOnce equivalent)
@Dennis: Done. The patterns could probably be better, but it works for me.
Jun
9
comment Linux: Schedule command to run once after reboot (RunOnce equivalent)
@Dennis: Thanks. I originally didn't have that extra grep call in there, but all of the comments were piling up; three for every time I ran the script. I think I'll change the script to just always remove comment lines that look like those three auto-generated comments.
Jun
9
comment Linux: Schedule command to run once after reboot (RunOnce equivalent)
Thanks for your answer. This solution is great. It technically solves my problem, however it seems like there's a lot of preparation of infrastructure required to make this work. It's not portable. I think your solution would ideally be baked into a Linux distribution (I'm not sure why it isn't!). Your answer inspired my ultimate solution, which I've also posted as an answer. Thanks again!