8,910 reputation
11132
bio website sites.google.com/site/arcege
location Salem, MA
age 45
visits member for 3 years, 6 months
seen 2 days ago

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


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.
Dec
22
answered awk split parameter by char
Dec
18
reviewed Reject suggested edit on Find holes in an enumeration in awk
Dec
18
answered Find holes in an enumeration in awk
Dec
9
comment Display content of all currently detached screen
Joachin; for a single command without at, it would just be a shell for loop: for i in $(seq 20); do screen -p $i -X hardcopy; done; this would be a "Compound Command" which is still a single command (unless you are talking about a single "Simple Command").
Dec
9
revised Display content of all currently detached screen
added 241 characters in body
Dec
9
comment Display content of all currently detached screen
Good addition, Stehpane. I always forget about at; I usually only use it in conjunction with grep to find something in a stream. Works well.