426 reputation
47
bio website blog.al4.co.nz
location
age
visits member for 3 years, 6 months
seen Nov 3 at 11:30

Sysadmin of 7 years, 3 as a Novell/Windows admin and 4 with Linux (RHEL/Debian).


Oct
30
awarded  Yearling
Sep
24
awarded  Autobiographer
May
6
awarded  Constituent
Apr
23
awarded  Caucus
Apr
14
comment How to install alternative version of Python beside distro supplied?
A chroot prevents the application from acessing anything outside its jail. virtualenv does not do this; it only isolates your python code from the system's python binaries and modules. Thus you can log to /var/log, call external binaries from /usr/bin and do anything a non-chrooted app can do.
Dec
11
revised Linux : To monitor a Service and restart if stopped?
fix links
Dec
11
comment Linux : To monitor a Service and restart if stopped?
@MariusMatutiae, I agree with your point but it depends on the nature of the service, and most process managers will back off after a number of failed restarts. It's perfectly reasonable for a process to naturally end, and for us to want to restart it automatically, e.g. a worker that picks up a job from a queue and ends after each run. It's also a handy tool for sysadmins that suffer from bespoke memory-leaking code - limit the lifetime of a process and restart it automatically before it can get out of hand...
Dec
11
answered Linux : To monitor a Service and restart if stopped?
Dec
11
revised How to install alternative version of Python beside distro supplied?
added 340 characters in body
Dec
11
answered How to install alternative version of Python beside distro supplied?
Dec
11
answered Shell script to show online users
Dec
11
comment My Mac is slow but don't know what's slowing it down
I know this is a really old question, but I noticed the same issue on my Retina Macbook Pro and this came up in my google searches. The cause was this bug: code.google.com/p/iterm2/issues/detail?id=2057 It may not be applicable in this case, especially as the mac in question is clearly not a retina, but given older macs are slower the bug may be more noticeable at non-retina resolutions on older macs.
Nov
6
answered Scripting with rsync, pulling more than the return status
Nov
6
answered Shell script for replacing string in all PHP-files, for each user
Oct
25
awarded  Enlightened
Oct
25
awarded  Nice Answer
Sep
26
awarded  Editor
Sep
26
revised Can you repeat last command with flags in bash?
comment feedback
Sep
26
comment Can you repeat last command with flags in bash?
How the tool (rm in this case) processes arguments is more what I was referring to. GNU utils on Linux generally accept option flags at the end after other arguments, whereas BSD (and OSX) do not. But you make a good point, !!:0 !* -rf is completely pointless and no better than !! -rf, I'll update my answer.
Sep
25
answered Can you repeat last command with flags in bash?