Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash maximum running time

timeout -s ${kill_signal} --preserve-status ${maxrun} /root/mon-lastdata.sh

example:
timeout -s 9 --preserve-status 100 /root/mon-lastdata.sh

-s 9 is equivalent to kill -9
Comment

PREVIOUS NEXT
Code Example
Shell :: download istioctl 
Shell :: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. 
Shell :: git remote add ssh 
Shell :: how to reset git branch to a certain commit. 
Shell :: how to trigger new heorku build without diting git 
Shell :: change keyboard layout linux 
Shell :: git push commands 
Shell :: symfony Unable to write in the "logs" directory (/var/www/html/var/log). 
Shell :: heroku push non master branch 
Shell :: restart fstab ununtu 
Shell :: git merge local branch 
Shell :: create vue app locally 
Shell :: create github repo without browser 
Shell :: how to remove cisco umbrella 
Shell :: Missing essential plugins: com.android.tools.design org.jetbrains.android 
Shell :: git delete master branch and recreate 
Shell :: modify file modified time linux 
Shell :: change directory in git bash 
Shell :: change user permission linux 
Shell :: batch file drive 
Shell :: git checkout -f 
Shell :: sum of output unix 
Shell :: download spyder without anaconda 
Shell :: vscode extension generate vsix 
Shell :: create .pem file from crt 
Shell :: catkin install 
Shell :: fedora 35 to 36 upgrade 
Shell :: zsh increment variable 
Shell :: jq select by field 
Shell :: autostart service linux 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =