334 reputation
317
bio website
location
age
visits member for 2 years, 2 months
seen 10 hours ago

Shyy erny anzr - Naqernf Rvonpu


Oct
25
revised How to poll existence of a background script correctly
added tag for pidof tool
Oct
25
revised Why pidof and pgrep are behaving differently?
added pidof tag ; replaced pid by process tag because pid redirects thereto.
Oct
25
suggested suggested edit on Using `pidof` with `sh -c`
Oct
25
awarded  Organizer
Oct
25
comment `ps | grep | kill` aborts my script prematurely
Good catch, even though if we're strict, piping ps -ef to grep is in fact redundant considering that ps provides the -C option just for this purpose. (see also Ignacio's answer)
Oct
25
revised Using `pidof` with `sh -c`
added pidof tag
Oct
25
suggested suggested edit on How to poll existence of a background script correctly
Oct
25
suggested suggested edit on Why pidof and pgrep are behaving differently?
Oct
25
suggested suggested edit on Using `pidof` with `sh -c`
Oct
23
comment Print pids and names of processes as they are created
OK, in OSI lingo the tier discussed here might be still lower than that of dbus. I admit that I hadn't thought in-depth about whether both are on the same tier or not.
Oct
22
comment Print pids and names of processes as they are created
So for the above question, one solution might be to have some program which outputs the names and pids of processes as they are created. – As they're created? Sounds what you're thinking of is an observer (this is what they call them in web browser world). I'm wondering if Python would be suitable for acting as a "door guard"? Facts are that Python can dig very deeply into the system's inner workings (e. g. dbus).
Oct
22
revised Are there any alternatives to pidof? (smaller footprint)
added 8 characters in body
Oct
22
comment Are there any alternatives to pidof? (smaller footprint)
... and read it out. That's a good approach, even though I'm always so reluctant with using temp files. In fact, your method is not much different from that of a computer graphics artist who reads off a sine table for periodically repeating values instead of computing the "live" sine several thousand times per minute. It's closer to the matter than you think: running pidof an uncountable number of times even though the PID might be still unchanged is pretty much the same thing. Thank you very much, I think I will (albeit reluctantly) try to use a temp file.
Oct
22
comment Are there any alternatives to pidof? (smaller footprint)
Thanks for the true tip. (Instead of prefixing the path, env true should do the trick.) Peaks are usually short, as I wrote in the OP. But considering that pidof might be executed several times per one second, lots of high peaks can be significant as well.
Oct
22
comment Are there any alternatives to pidof? (smaller footprint)
@Ramesh yes, like $(pidof firefox) in a bash script, for instance. @terdon bash might indeed be the actual culprit, yes. However that's merely speculating. :) BTW, it's just that I think such easy task ought not produce these spikes. Whether there is still some air to breathe for my CPU or not, does not matter here.
Oct
22
asked Are there any alternatives to pidof? (smaller footprint)
Oct
14
comment Openbox: disable Alt-F4 on per application basis
I know that, but it always looks like playing the wise guy with such minor typo fixes. :) I normally only do that with bigger issues: bad layout,. bad grouping etc.
Oct
12
comment Modify the right click options when clicking a desktop icon
Gilles asked about both your desktop environment (e. g. LXDE, Unity...) and your window manager (e. g. xfwm4, openbox). It must be noted that with modern Linux distros, these are usually combined as one (arbitrary) pair of (DE, WM). For instance, LXDE normally uses openbox as window manager.
Oct
12
comment What's stealing my F11 key?
OK, let me get out my crystal ball again ... Presumably due to logging in graphically openbox was still active in the system and was in reality not restarted with your new settings. This would have been done by openbox --restart, which you can even launch from console when on LXDE "live." (as regular user!) Might save you from the trouble to reboot or even power-cycle the machine with such minor changes.
Oct
12
answered Openbox keybindings not taking effect after --reconfigure or restart