Is there any way i can write a script to get a popup as an email that some x user has connected to a particular database Scenario: there was an “X” database and if some “ABC” user has logged into that database by using some account user id and password , an email should be triggered to…
Tag: linux
Linux java, max disk space size of file
I want to ask, if: -Xms1000M -Xmx1000M Are commands for Java (Linux) for maximum file usage of RAM, is there opinion to do same with Disc space? Example to set max file size at running it, same as for RAM, just for HDD/SSD space. Thanks to all in advance. Answer First of all, the -Xms1000M and -Xmx1000M do no…
Shell append redirection replaces existing text?
For our school assignment, we have to implement input/output redirection. I managed to get the input and output redirection work, but I am facing an issue with append redirection. I am using testfile.txt: When the user types ls >> testfile.txt, I expect the output from ls to be added to the testfile. At…
Is checking the existence of file or folder blocking or non-blocking?
Is checking the existence of file or folder blocking or non-blocking? Is opening dir / file blocking or non-blocking? Is list dir blocking or non-blocking? By block, I mean take a long time to return. Answer (I assume that you mean “block” in the sense that it’s usually used in Unix manpages…
Integer taking a random value after a function call that doesn’t even edit it
I’m executing a program from command line, it takes string integer string string parameters, I call a function that reads the following file: sólo te lo diré mañana al mediodía en la biblioteca It reads the file and prints what it is supposed to print but when it goes back to the main function the value…
fortran subroutine import in python fails
I am trying to import a fortran subroutine into python code. Following this guide https://notmatthancock.github.io/2017/02/10/calling-fortran-from-python.html I have added the following line into my fortran code: However when I try to use f2py -c fireball_ES_param.f -m fireball to create fireball.so to import…
Serial Input in Ubuntu, Usb to serial converter (Pl2303 – Prolific) not working in ubuntu 18.04
I am trying to read input from a Electronic weighing scale (Weigh sensor) connected to Ubuntu enabled UDOO board using a Prolific PL2303 serial converter cable (CA-US9), but am unable to read any input from the sensor. To monitor the input I have tried using (Coolterm & GTKTerm), assuming an issue with th…
How to deploy web console by docker, docker run -d -p 80:80 -v :/var/lib/mongodb –name, What is host absolute path?
I’m trying to deploy Apache Ignite Web console on Linux(CentOS 7), but to run docker, i have to set host_absolute_path of MongoDB, How to handle it? <host_absolute_path> is a path on your host machine where MongoDB will create database files. This folder should be created before docker run. Go to …
.NET Core build in docker linux container fails due to SSL authentication to Nuget
I was given a .NET Core project to run in a Linux Docker container to do the build, everything seems to be okay on the docker configuration side, but when I run this command: dotnet publish -c Release -o out, I get the SSL authentication error below. The SSL connection could not be established, see inner exce…
What is the point of “grep -q”
I was reading the grep man page and came across the -q option, which tells grep to “not write anything to standard output. Exit immediately with zero status if any match is found, even if an error was detected.” I don’t understand why this could be desirable or useful behavior. In a program …