Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ubuntu restart network manager when ping is low

start on started network-manager
stop on runlevel [016]

script
  while true; do
    if ifconfig eth0 | grep -q "inet addr:"; then
       # echo "all ok!"
    else
       restart network-manager
    fi
    sleep 5
  done
end script
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu 19.10 eoan update error 
Shell :: cmd concatenate files 
Shell :: soundfile sndfile library not found 
Shell :: how to join any cluster redis 
Shell :: linux how to run executable in background $ 
Shell :: octal notation in linu 
Shell :: git copy stash entry from one repo to another 
Shell :: Change cursor in cmd 
Shell :: To prevent the reboot command from sending a message, systemctl command 
Shell :: ubuntu compressed extract 
Shell :: ssh local 
Shell :: how to install or renew https ssl in frappe bench 
Shell :: lst conflit files gt 
Shell :: remove inkscape older version 
Shell :: create multiple files on Linux in sequence through the terminal 
Shell :: rename branch 
Shell :: what is the command to move the cursor to the start of the current line in vi 
Shell :: shell scripting cheat sheet 
Shell :: git change name 
Shell :: mysql password inline cli 
Shell :: shell loop tuple 
Shell :: ubuntu bash zip 
Shell :: install h5py in jupyter notebook 
Shell :: install ddev on linux 
Shell :: how to record or log commands on the command-line 
Shell :: install gasreporter 
Shell :: git pull remote branch that does not exist locally 
Shell :: exporting samtools to path 1.13 
Shell :: How to show diffs for gpg-encrypted files? 
Shell :: push the branch with the correct name, and reset the upstream branch 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =