Questions tagged as 'linux'

0
answers

Run command from java

I have the following code: String java(){ try { Process process; String file="If"; process = Runtime.getRuntime().exec("java -verbose If < codigo.txt ",null,new File(ruta)); //process.waitFor();...
asked by 01.10.2018 / 02:21
0
answers

how long should the mail () function take to return the response

I am sending emails and it takes me between 8 to 9 seconds to return the answer, I did the following: I ran the benchmarks modify the content of the mail The only thing that delays is the answer, how could it be optimized? (taki...
asked by 27.09.2018 / 20:44
0
answers

The dhcp server provides the ip to the clients but the internet can not be accessed

I'm new to the linux world and I wanted to make a dhcp server with ubuntu, everything turns out well, it establishes the IP address for all the clients, however at the moment of wanting to enter the internet it denies me access, it is worth noti...
asked by 06.10.2018 / 21:08
1
answer

Google Compute Engine, error when connecting remotely to MySQL

I have an error creating remote access to the MySQL database manager that is hosted on an instance in Google compute Engine I have an instance in Google Compute Engine using Bitnami where I have an intact MySql , I'm trying to connect re...
asked by 02.10.2018 / 17:30
0
answers

Extract data from a file with a column

I have a file file.txt , as follows: 24/9/2018 15:35:19,380 B63201C 9/24/2018 15:35:22,350 ES0101C (initial_time) 9/24/2018 15: 36: 13.231 Execute next service: 0003 9/24/2018 15: 38: 13,664 Result of the execution of 0003 Result: 0...
asked by 03.10.2018 / 13:17
0
answers

udev rule to run a script when inserting a USB

I try to create a udev rule to run a script when a USB stick is inserted. In /etc/udev/rules.d/ I created the file setupMyApp.rules with the following line: ACTION=="add",KERNEL=="sd[a-z]?",SUBSYSTEMS=="usb",RUN+="/root/setu...
asked by 14.09.2018 / 11:41
1
answer

CronJob Ubuntu 16.04 / php7.0

I want to run a CronJob on an Ubuntu server 16.04 with php.7.0, which does not work for me. I have the following crontab -e, which should perform or execute my script every 10 minutes, but it does not do anything. 10 * * * * /usr/bin/php7.0...
asked by 22.09.2018 / 21:48
0
answers

How to get a json variable with jsaw from linux?

I would like to request help to achieve the following: My idea is an automatic updater of the Minecraft server, without human intervention I tried to search the Internet, but I can not see how to do it The code that was being used at th...
asked by 12.09.2018 / 17:23
0
answers

Problems with script to view and eject users

I'm doing a script with python3 in linux to let me know when someone is connected to my system and allows me to throw the user I want. I have this script and it works with graphical interface with the tkinter library. The problem is that when I'...
asked by 11.09.2018 / 15:47
1
answer

the cron is executed several times by several users

I have several CRONs in a raspberry pi and I've noticed that they run more than once, especially one that should run every 5 minutes but do it 3 times, I had the user write that I executed that file with a Random name so that the evidence is not...
asked by 11.09.2018 / 17:31