9,188 reputation
11433
bio website sites.google.com/site/arcege
location Salem, MA
age 46
visits member for 3 years, 8 months
seen 8 hours ago

Software configuration manager on UNIX/Linux system. Python, Bourne shell, C. Automation, Ant, Make, Maven, Ivy, Jenkins/Hudson, CruiseControl.


Sep
14
answered Delete oldest files from a directory if number exceeds seven
Sep
1
answered man pages: meaning of '2' in STAT(2)?
Aug
22
awarded  Enlightened
Aug
22
awarded  Nice Answer
Aug
19
awarded  Good Answer
Aug
4
awarded  Good Answer
Jul
26
awarded  Nice Answer
Jul
25
comment Is it possible to get the error message from previous command which failed when the conditional command runs using ||
Do you mean handle when the shell would exit because of the -u option? In (da)sh, there is trap 0. In bash, there is trap ERR.
Jul
23
answered -bash: cd: .ssh/: Permission denied
Jul
12
revised How to execute this particular shell command from Python?
Typo raised by commenter
Jul
9
awarded  Nice Answer
Jul
6
comment What triggers this screen prompt “Screen used by <username> on host01.”?
@vfclists, if you find this disruptive, you can add bind x to ~/.screenrc so that key combination will no longer work.
Jul
2
awarded  Good Answer
Apr
30
awarded  Nice Answer
Apr
14
awarded  Nice Answer
Jan
28
comment When should I not kill -9 a process?
@dhruvbird But it would still be effort and possible downtime until the db file is repaired/restored (that's assuming that there are sufficient notifications to let you know of the corruption). Why deal with this risk by using something that should not be used? SIGKILL is not for terminating processes.
Jan
28
comment When should I not kill -9 a process?
@dhruvbird With file descriptors opened with O_SYNC, then they would be safe with a SIGKILL. Anything else risks a file being closed before buffers are written to the file. Is the data corrupted beyond repair, possibly not, but you can't say, with SIGKILL, that it won't be corrupted. Behavior not withstanding, the risk is still there. To answer your question, SIGKILL is for extreme circumstances and corruption is an expected risk, so yes, anything that corrupts on SIGKILL is acceptable.
Jan
26
awarded  Yearling
Jan
19
answered How can I use tee to print the input stream?
Dec
23
reviewed Approve suggested edit on Delete files specified by the output of find: rm thinks argument list is too long.