CentOS HDD S.M.A.R.T. shell script Create path exactly this path /var/prtg/scripts Install smartmontools yum install smartmontools Start the service service smartd start chkconfig smartd on…
Linux cheat sheet
CentOS HDD S.M.A.R.T. shell script Create path exactly this path /var/prtg/scripts Install smartmontools yum install smartmontools Start the service service smartd start chkconfig smartd on…
Create “spooler.bat” and insert script below Script will check if spooler is running or not and will restart the service sc query spooler | find…
Here is a simple trick that I used to restart my python script after unhandled exception. #!/usr/bin/python from subprocess import Popen import sys filename =…