Questions tagged as 'linux'

1
answer

Edit configuration file

I have a configuration file with several parameters, for example: campo1=valor campo2=valor campo3= I would like to assign a value to campo3 with Shell Script. I tried to awk but could not. The value to be replaced will hav...
asked by 17.08.2018 / 20:16
1
answer

How to call a linux executable program in php code?

I have a question, I have a web application in PHP from which I will receive a txt file. I need to call a program in linux that will execute this txt file and, I would like to know, how would I call a linux program in PHP code by sending the txt...
asked by 25.07.2017 / 23:17
4
answers

Make one copy at a time from the source file, to the destination files

A new need arose accompanied by a good new question that until then I did not find anything similar on the internet - Copy a single line at a time, for a single different file . Example for each new line to be copied: total=10 linha='ca...
asked by 02.02.2018 / 13:36
1
answer

How to find out the JVM port in linux?

I have linux server running a JRE 1.7 and I need to use VisualVM to monitor the performance of the applications running on it. VisualVM uses JMX to connect to the linux host but it expects something like <hostname>:<port> At...
asked by 05.07.2017 / 14:18
2
answers

What is Port Knocking?

So I realized it's about sending a sequence of requests to a server in order to unlock a port. It would then be possible through a browser to enable the port for ssh, for example: Access servidor.com:80 then servidor:81 and t...
asked by 21.11.2017 / 17:29
2
answers

Unpacking files with space in the name

I'm trying to unpack a large mass of files in linux and I'm trying to use a for that looks like this: for z in *.zip; do unzip $z ; done but I get the following message:    unzip: can not find or open divide, divide.zip, or divide.ZIP. u...
asked by 21.06.2016 / 17:07
1
answer

How to make communication between java in prolog?

Good morning! I need to develop a specialist system like college work. I thought about doing it using java to create the interface and prolog as an inference engine and fact base. But the links I found about a JPL library are broken and I do...
asked by 16.07.2016 / 15:43
1
answer

MySQL not connecting connects by error in socket

Good afternoon friends, after correctly installing MySQL 5.7 on my Ubuntu 16.04, when trying to connect to the database, I get an error message saying that it was not possible to connect through the socket. Execution: mysql -u root -p...
asked by 24.07.2016 / 20:28
2
answers

Error with sem_init () function in Linux

I'm trying to solve a problem with semáforos , but when I try to use the sem_init() function I get an error saying that there is undefined reference, Can you tell me why? I have the semáforos library included. Code (C)...
asked by 27.01.2016 / 23:54
1
answer

Error sending PhoneGap pro GooglePlay

When you send the PhoneGap APK to GooglePlay, you have the following error:    SEND NEW APK FOR PRODUCTION       Upload failed You uploaded a debugging APK. For reasons of   debug before you publish it on Google Play.   Learn more about debu...
asked by 29.01.2016 / 02:01