Skip to content
Advertisement

Tag: shell

Restart ffmpeg process using monit if TOTAL CPU is less than 1%

I have used kind of similar solution like this Restarting ffmpeg process using monit to restart my ffmpeg stream in case it fails for some reason. Remember its not duplicate problem/question, because I have other issues unlike the example question/solution Restarting ffmpeg process using monit, which I’m gonna explain below. So here is my monit configuration: Here is my streambash.sh

How to ssh another VM without password [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Should I be using parameters or export environment variables?

I’ve always developed my shell scripts using parameters, on a daily-basis or even when developing some automation scripts. However, recently I’ve tried a different approach, exporting environment variables to my scripts. This ensures a smaller code, easy checks if all the required variables are initialized and also, better understanding of what the script is doing, once all the variables are

Bash/SH, Same command different output?

And the last one is correct. Why is that? and how to solve it? Answer Per POSIX, echo supports no options. Therefore, when echo -n is run with sh, it outputs literal -n instead of interpreting -n as the no-trailing-newline option: Note: Not all sh implementations behave this way; some, such as on Ubuntu (where dash acts as sh), do

No man page for the cd command

Ubuntu Linux 15.10 – I just noticed that there is no man page for cd This seems a bit strange. I tried: at the cmd line and I get back I was trying to find documentation on which is super-handy for flipping between the last dir and the current dir and cd — which seems to be an alias for

dump methods from shared libraries

to list all methods from a shared library I use the what has an output like this: But when I try to pipe the output of find into objdump like this I get this error: and this lib folder does contain a lot of shared library files. What is wrong with my command? SK Answer or objdump expects the name

Advertisement