– Connect to your ESXi with vSphere client and if necessary, enable SSH by going to configuration > security profile > properties > ssh and start the SSH service.
Update and fetch data MySql records using python
I have decided to look further into python in order to progressively move some of my bash scripts, using python instead.
Some scripts (initially in bash) that I have used to update MySQL content, so below some examples of mechanisms used in python.
Continue reading “Update and fetch data MySql records using python”
Query the windows registry
I had the need to query the registry for a specific string, if the string is found or not then engage an action.
Within this scenario as example, it query the registry and a specified string, an action is taken if this one is not found/present.
@ECHO OFF set regpath=HKLM\Software\Microsoft\xx\ set regvalue=mystring set regdata=1 reg query "%regpath%" /v "%regvalue%" | find /i "%regdata%" if errorlevel 1 ( echo Please wait blah blah...... Start /WAIT .\myprog\install.exe EXIT /B /0 )