1,358 reputation
511
bio website
location
age
visits member for 3 years, 2 months
seen Sep 12 at 6:31

Aug
26
awarded  Yearling
Jan
20
awarded  Necromancer
Aug
26
awarded  Yearling
Aug
26
awarded  Yearling
Jan
25
awarded  Revival
Nov
5
awarded  Revival
Oct
11
answered Simple command that switches between two host files
Oct
6
answered Success/fail tests for cURL (don't execute second line if first line fails)
Oct
6
comment Distinguishing a regular file from a symlink
test -f directory will return a 1 not a 0: test -f . ; echo $? (outputs 1)
Oct
6
answered Distinguishing a regular file from a symlink
Oct
6
comment How can I test whether a block device is read-only from /sys or /proc?
I don't really think there is a way without attempting to write. The way I understand how this works is when it attempts to write the device itself is what rejects the command, not the kernel. So I think you'd have to test a write before you could be sure. There are some other cases where the device might be locked that you could probably test for with lsof but not the writeability.
Oct
6
comment How can I debug a problem with my network connection?
If the NIC isn't built-in I might try it in another server, but all the testing you've done so far indicates the NIC is broken.
Oct
6
comment deny any writing to given app and its children
Does it still need read permissions for stuff? @Tim Kennedy's answer is a good place. The more app-type agnostic way to do this is using chroot, and just putting it in a directory it has no write permissions to (how named works).
Oct
6
comment Is there a way to tell logrotate to ignore open files?
Isn't that how logrotate functions? It moves the files and then creates new ones before it hups the processes to get them to reopen the new file. So I don't really understand how this would work? Can you clarify what you are trying to accomplish(bigger picture)?
Oct
6
answered How to get full path of original file of a soft symbolic link?
Oct
5
comment How can I debug a problem with my network connection?
Usually if the NIC is broken like this you start getting logs. Is there anything in dmesg or /var/log/*?
Oct
4
comment What does this awk script do
I can't reproduce this on OS X. With or without the 1 I get random output.
Oct
4
comment How can I pass module parameters for bonding driver when compiled into kernel 2.4?
How old is old? It looks like this was in 2.4.22: fxr.watson.org/fxr/source/drivers/net/bonding/…
Oct
2
revised slow media - disk cache tuning?
urls
Oct
2
answered slow media - disk cache tuning?