bash – How can I execute a command when all processes of a particular name crash?

I am using a Dotnet application on a VPS running Ubuntu, and the application needs to run around the clock. When I start the application I use "nohup dotnet (name) .dll" and in HTOP these processes are simply appended with the command "dotnet (name) .dll". Due to the nature of the application, however, it must be executed in several processes, ie in several PIDs. I've seen several instances of restarting processes in the event of a crash, but all seem to be based on PIDs I've seen. What type of script would I need to search for dotnet commands that would stop running and execute multiple lines of code (including a sleep command so that the process would not be restarted while it was already started), and how I do that? Make sure it's always running in the background?

Ubuntu crash after Shred Command Disk

I have a dual boot Ubuntu 19.10 with Windows 10 and deleted disk for Windows. I also tried to shred an SSD hard drive using Ubuntu OS with shred, but it crashed halfway.
Now I can not start Ubuntu because it hangs when loading the screen. It has never done that before. I've tried most of the advanced recovery mode options, but nothing works.
How can I fix this?

bitcoind – RPC errors raised by each command

Based on this question, is there a comprehensive list of the errors that any RPC command can return?

For example. Let's say I want to run getbestblockhash or getblockcount, I am not sure which errors are to be expected.

I do not think that such documentation exists. You would have to read the source code for a particular RPC. Because some functions of RPCs are shared and can return certain errors, it may not be easy to list all the errors.

Also, I'm not sure if there's a common error code that can be returned in many cases (RPC_MISC_ERROR for example).

If there is an error for which there is no separate capture and validation (ie, an exception is raised that the RPC does not capture), then RPC_MISC_ERROR Will be returned.

Network – Use the Windows command line to disable DNS registration for specific network adapters

On systems that have VMware Workstation installed, there are two virtual NICs that are (typically) identified by name VMware Network Adapter , I'm having trouble connecting remotely to the hosts because the default IP range for VMware VNets exists as VLANs on our corporate networks. When the host registers its network adapters with the DNS servers, the VMware network adapters are included.

If another client on the network tries to communicate with the host, it may be using the VMware IP range, which does not work.

So I want to develop a script (Windows CMD or PowerShell) that will disable the setting that configures the virtual network cards to register with DNS.

Note: If I completely change the IP address ranges of the virtual NICs, the problem can resolve itself. However, this is the case in a lab environment where VMware is provided unattended. Therefore, it seems easier to disable DNS registration than to change the IP ranges.

16.04 – The postgresql command to delete the role does not work

The command drop role does not work in my postgresql 11. I can change the role & # 39; do not delete.

 Role name |                         Attributes                         | Member of 
 ckdev |                                                            | {}
 postgres  | Superuser, Create role, Create DB, Replication, Bypass RLS | {}

postgres-# drop role ckdev
postgres-# du
                                   List of roles
 Role name |                         Attributes                         | Member of 
 ckdev |                                                            | {}
 postgres  | Superuser, Create role, Create DB, Replication, Bypass RLS | {}

bash – bash_completion: Command not found, will be displayed when opening the terminal

When I open my terminal, I have the tex.
bash_completion: command not found Show top of the terminal.
Enter image description here

There is no .bash_comletion in my home folder
The .bashrc file is there.

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if ( -f /usr/share/bash-completion/bash_completion ); then
    . /usr/share/bash-completion/bash_completion
  elif ( -f /etc/bash_completion ); then
    . /etc/bash_completion

export NVM_DIR="$HOME/.nvm"
( -s "$NVM_DIR/" ) && . "$NVM_DIR/"  # This loads nvm
( -s "$NVM_DIR/bash_completion" ) && . "$NVM_DIR/bash_completion"  # This loads nvm

export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

The problem started when I tried to install a native reaction

Command line – Default size of the terminal window in Ubuntu 18.04

I want to know how to set the default terminal size in Ubuntu 18.04. Previously, there was an Edit option in the menu bar, but none in this new version. If I click on the options next to "New Tab", I go to "Advanced" and set the menu size to the one you want.

Ubuntu 18.04 menu options

Window sizes under "Advanced"

When I close the terminal and reopen it, the settings are not saved. Any help?

Combat – Should the move / action command be restricted?

I would like to know for certain whether the order in which the free movement and the non-movement action are to be executed (ie train + train vs. train + train) should be limited in the basic ruleset.

The main message of the Core Book on the Free Movement seems to be limited to one particular sentence:

If nothing prevents you from doing so, you can move another zone in addition to your replacement action,

For some time (for reasons that are relevant to this question and in retrospect say little) I believed that the order should be set. Some discussions have prompted me to do so inclined to believe that the order should be free.

Recently there was a situation in my campaign where confusing the order could benefit an NPC enemy, but I renounced such tactics because I did not want to risk turning the exchange into a rule-based discussion and losing track of the conflict because I was not sure if all players would stick to the same default assumption. I would like to be ready for the next time it might turn up:

I would like to know if there is official evidence clearly Solve the matter one way or the other. Such evidence may be out not from third parties Rulebooks, FAQs, other comments, Author approved Examples, etc. A third-party testimony is valid proof only if it is cited either by the manufacturers of the system or written in direct consultation with the manufacturers, especially in relation to this mechanism.

Command line – bash: Syntax error near the unexpected token? (& # 39;

I try to execute this command:

java -jar -XX:-TieredCompilation node_modules/google-closure-compiler/compiler.jar --flagfile="/tmp/499a750e-98bc-4afa-b333-fb08fa71351e" --js=/home/ubuntu/santa-tracker-web/components/closure-library/closure/goog/base.js --externs=node_modules/google-closure-compiler/contrib/externs/google_universal_analytics_api.js --compilation_level=ADVANCED_OPTIMIZATIONS --warning_level=VERBOSE --language_in=ECMASCRIPT6_STRICT --language_out=ECMASCRIPT5_STRICT --define=santaAPIRequest.BASE="" --output_wrapper=(function(){%output%}).call(window); --rewrite_polyfills=false --generate_exports=true --export_local_property_definitions=true --jscomp_warning=accessControls --jscomp_warning=const --jscomp_warning=visibility --js_output_file="santa.min.js"

Actually, this is an error from a gulp file, but I've narrowed down this problem to that particular line of code here that causes the problem.
It complains about the syntax – but in my view, I can not believe what the problem seems to be.

Thank you in advance!