7,725 reputation
11533
bio website
location
age
visits member for 2 years, 2 months
seen 11 hours ago

1d
comment Why doesn't inotifywatch detect changes on added files?
I don't think we're on the same wavelength here... man inotify: When a directory is monitored, inotify will return events for the directory itself, and for files inside the directory. Also, man inotifywatch is clear about which events are being watched: > EVENTS > ... A watched file or a file within a watched directory was accessed/closed/open/etc (means including events "which occur on a file"). Events for a file created after setting the watch on parent dir WILL be detected & reflected in inotifywatch stats (it will NOT mention for which files those events occured).
1d
reviewed Approve suggested edit on What is the point of chgrp?
1d
comment Why doesn't inotifywatch detect changes on added files?
Also: "It means that any event which occurs on a file created after the watches have been placed will not be detected." Any event (even the file creation) WILL be detected because a watch is ALREADY set for the containing directory and this is reflected in the statistics for that particular directory. See inotifywatch output in the OP question: the 2 create events are there (so they are detected) but since inotifywatch watches a directory (+any subdirectories) the statistics pertain only to that/those directories.
1d
comment Why doesn't inotifywatch detect changes on added files?
.bashrc in the example @ serverfault does not appear in the stats because the user monitors its home directory recursively but because path/.* is expanded and as a result a watch is set for all the .files under path/ (.bashrc included). The command used by the OP will never output file names because the watches are set for /tmp and any subdirectories therefore statistics will pertain only to /tmp and its subdirectories (i.e. you will see files have been accessed/moved/etc but it won't tell you their names).
2d
comment Udev running hibernation script
man udev >> RUN can only be used for very short-running foreground tasks.....Starting daemons or other long-running processes is not appropriate for udev. Try using a trigger script, i.e. RUN+="path/to/trigger.sh" where trigger.sh calls your script and exits (e.g. /opt/bin/battery-low.sh & exit)
2d
comment double grep on tail -f gives no output
Well, if you actually read Chin's answer, it points to BashFAQ/009 and there's your answer: There is no problem if we simply run tail -f logfile, because tail -f never buffers its output. Nor is there a problem if we run tail -f logfile | grep 'foo bar' interactively, because grep does not buffer its output if its standard output is a terminal. However, if the output of grep is being piped into something else it starts buffering to improve efficiency.
2d
comment double grep on tail -f gives no output
See here
2d
revised Actual memory usage of a process
formatting
Oct
28
comment How to get proper format from date for the touch -A argument?
@PM2Ring - OSX touch has -A (adjust). OP, could you elaborate on "immediate date" ? Does that mean current time/date ?
Oct
24
comment Why distros don't have a unique version which continously provide updates?
How do rolling releases work ?
Oct
24
comment keyboard shortcut for inserting text
Try like this: use the command e.g. sleep 0.2 && xdotool type --clearmodifiers '.net' in a script in your PATH and have gnome keyboard settings run the script when you press CTRL+ALT+N instead of running directly the command. Also, you need that sleep invocation otherwise the "." and possibly the "n" would not show up (no idea why).
Oct
24
answered Non-graphical boot with systemd
Oct
24
comment Installing Matlab from an ISO image
Run umount /mnt/disk to unmount /mnt/disk.
Oct
21
comment Vertical lines connecting blocks in Gedit
Those are called "indent guides". Unfortunately, gEdit doesn't support this feature. If you absolutely need it you have three options: 1. request this feature on gedit mailing list (don't hold your breath though); 2. write a gedit plugin (if you know python); 3. switch to another editor, more feature rich.
Oct
20
answered What are the bash shell length limitations for here-docs?
Oct
20
answered Can I scale GPU frequency?
Oct
19
answered Disable workspace switch overlay effect
Oct
18
comment What are the bash shell length limitations for here-docs?
It fails with my xterm(293) (archlinux, kernel 3.9.1) - line 55 is truncated (same with gnome-terminal).
Oct
18
awarded  Revival
Oct
17
answered Advantages/disadvantages of increasing “commit” in fstab