@SuppressWarnings("unchecked")
	public static JSONObject executeShScript(String cmd, JSONObject jsonResp){
		
		log.info("starting shell script execution ... :" + cmd);
		try {			
			
			Process process = Runtime.getRuntime().exec(cmd);
			String outStr = "", s = "";
			
			BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()));
			while ((s = br.readLine()) != null)
			{
				outStr += s;
			} 
			
			log.info("Output String : " + outStr);
	
			String errOutput = "" ;
			BufferedReader br2 = new BufferedReader(new InputStreamReader(process.getErrorStream()));
			
				while (br2.ready() && (s = br2.readLine()) != null)
				{
				  errOutput += s;
				}
			log.info("Error String : " + errOutput);
			
			if(errOutput.contains("Syntax error")){
				
				jsonResp.put("status", "1");
				jsonResp.put("message", "Failed to start modsecurity");
				
			} else{
				
				jsonResp.put("status", "0");
				jsonResp.put("message", outStr);
			
			}
		
		} catch (IOException e) {
			
			jsonResp.put("status", "1");
			jsonResp.put("message", "Error: internal service is down");
			log.info("Error Message: " + e.getMessage());
			//e.printStackTrace();
		
		}
		
		return jsonResp;
	}