39,217 reputation
482126
bio website chrisdown.name
location London, England
age
visits member for 3 years, 4 months
seen 1 hour ago

Jan
29
comment ffmpeg is killed
Why do you send SIGKILL? That's a very poor idea, it gives no time for ffmpeg to close the file or do any cleanup work (SIGKILL is untrappable). you almost never want kill -9.
Jan
23
reviewed Approve In a Bash if condition, how to check whether any files matching a simple wildcard expression exist?
Jan
9
comment Build system for shell scripts
If you are willing to build a convoluted system to do this, but are not willing to consider the (long solved, and far more sustainable) solution of shipping more than 1 file in your deployment, I think you're headed down the wrong path. Good luck though. :-)
Jan
9
comment Build system for shell scripts
...which seems the far preferable solution.
Jan
9
comment Build system for shell scripts
You have not read my reply correctly, I am not suggesting that you should make your wrapper a Python script. I am suggesting that you do not inline Python code.
Jan
9
comment Build system for shell scripts
Why inline the code at all? That seems like a strange thing to do. It would likely be better to have clear separation between your Python code and your shell script.
Jan
9
comment Build system for shell scripts
I really don't understand what you are asking here, or what you want to happen. What is your question, specified as succinctly as possible?
Jan
7
awarded  Enlightened
Jan
7
awarded  Nice Answer
Jan
4
revised How to set proper monitoring of my services in a automated way? So that if one crash it auto on the fly restarts?
edited body
Jan
4
comment How to set proper monitoring of my services in a automated way? So that if one crash it auto on the fly restarts?
@JdeBP It's a typo for "spawned", thanks for letting me know to correct it! :-)
Dec
29
awarded  Guru
Dec
11
awarded  Good Answer
Nov
21
awarded  Nice Answer
Nov
12
awarded  Good Answer
Nov
11
comment Process with randomized name
What do you mean by "what is enabling the change of name"? A process can name itself whatever it likes whenever it likes by changing the contents of argv. If it's the same process, you might consider inspecting it by PID instead.
Nov
9
revised How to display the IP address of the default Interface with Internet connection?
added 216 characters in body
Nov
9
comment How to display the IP address of the default Interface with Internet connection?
@MarcellodeSales Yeah, /proc/net/route. I've posted an answer to that effect.
Nov
9
answered How to display the IP address of the default Interface with Internet connection?
Nov
9
comment How to display the IP address of the default Interface with Internet connection?
If you're going to do this on Linux, you might consider using procfs instead of parsing :-)