Skip to content

read -a not working as expected in Bash

For some reason when using “read -a” my script is only taking the first element of the line into the array. For example, when inputting a string such as “canada China”, the output of the program simply reads: Instead of: The instructions for my assignment are as follows: Create a scrip…

Word count after zgrep

I’m a little confused as to what this counts: Does it count the occurences of abcd in the 4 lines xyz? “wc -l” returns a different count than the number of lines present inside the file. Answer Prints every ‘xyz’ and 4 lines before from the file. zgrep -B 4 “xyz” <…

Amcharts images “304 Not Modified” error

I’m getting 304 error when AMCHARTS images are requested to load. Odd thing is that it works locally on my PC but doesn’t work in development environment. Checked folder and files permissions > Permissions are all OK Checked PATH > Path is OK Tried absolute paths > Still not working in de…

Python program executable for windows

I have Linux installed and Python 3.5. The program itself is made in Linux but i need to make it executable in windows. I cant see any program that can do this for python 3.5. Please give me some working option. pyinstaller, cx_freeze and py2exe dont work with 3.5 After fighting with depends for some time i g…

mcafee mysql audit plugin version vs mysql version

Actually I was searching a opensource tool/plugin/command by which I can get some logs suppose who executed a truncate command at which time from which IP etc. but not getting such type a feature in open source (don’t want to enable general log as wants specific/limited logs). Fortunately I got informat…