843 reputation
925
bio website beatgammit.com
location Provo, UT
age 26
visits member for 3 years, 4 months
seen Oct 7 at 16:04

I am studying Computer Science at Brigham Young University. I been interested in computers and computer programming since I was a teenager.


Aug
9
accepted Efficiency of lots of inotify watches or stat calls
Aug
9
comment Efficiency of lots of inotify watches or stat calls
So, is there any gain to adding a listener to individual files?
Aug
9
asked Efficiency of lots of inotify watches or stat calls
Aug
7
comment Detect init system using the shell
@Caleb- Yeah, I already have that logic in there, but good catch. I was hoping for a way to sniff the init system to use an intelligent guess than a sane default.
Aug
7
comment Detect init system using the shell
Hmph, so it's looking like I can't have a 'one script to rule them all' solution. I've seen a lot of programs that use autoconf or similar to handle cross-platform stuff, but it doesn't seem like it's the right tool for my application. Is maintaining versions for each platform really the only reliable solution?
Aug
7
comment Detect init system using the shell
Cool, thanks for all your help. You definitely have pointed me in the right direction.
Aug
7
comment Detect init system using the shell
So, are you saying that there is no reliable way to detect the init system programmatically? Having the user pass in parameters is certainly safer, but if the user does not pass anything in, what would be the best way to guess?
Aug
7
comment Detect init system using the shell
What do you mean by "look at the init scripts type"? Often different init systems put their scripts/files somewhere besides /etc/init, like systemd puts them in /etc/systemd. If I was to have my script grok these, it could take a little while. Oh, and thanks for the link BTW for portable shell programming.
Aug
6
asked Detect init system using the shell
Jul
10
comment Kernel inotify watch limit reached
@ultrasawblade- inotify replaced dnotify. dnotify was slow and buggy. inotify can be used on directories, and a directory will be "changed" when one of the files in that directory (one level deep) is modified. Directories are just files anyway.
Jul
9
accepted Automated PAM module installation
Jul
9
comment Automated PAM module installation
Ok, that makes sense. I guess I will create some sample config files and give detailed instructions on the preferred setup.
Jul
9
accepted What environment do I get with sudo?
Jul
9
comment What environment do I get with sudo?
I didn't know about the secure_path option. The default did not include /usr/local/bin on my install. Thanks, this really helped clear stuff up!
Jul
9
asked Automated PAM module installation
Jul
6
comment Bash: double equals vs -eq
@Gilles- Oops, good catch.
Jul
6
revised Bash: double equals vs -eq
added 2 characters in body
Jul
5
accepted Bash: double equals vs -eq
Jul
5
comment Bash: double equals vs -eq
Does that mean that if both sides are integers, it converts both sides to strings and then compares them?
Jul
5
asked Bash: double equals vs -eq