Questions tagged as 'linux'

1
answer

Socket operation on non-socket

I'm learning how to program sockets but I'm having problems when I want to exchange the messages between the client and the server, the two codes work as "should", but the problem is when sending a message and receive. client.cpp #include &...
asked by 01.10.2017 / 19:33
1
answer

Error: "Can not find symbol" - Class Instance within the Main Class, using Linux terminal

I have an exercise to solve, which is to create a simple Java language calculator. I have to through the Terminal, send the two numbers as arguments to my program. I am using the following build command: zeluis@zeluis-HP-EliteBook-8460p ~/...
asked by 17.11.2017 / 23:34
1
answer

How to create png file for multiple graphics using x11 in R?

I was able to plot and generate files (png) of the simple graphics, but in case of several graphics in the same window (as in the case of x11) I can not save the file in the directory. png(filename="box_sv_sst_mean.png",width=2034,height=2034,u...
asked by 25.10.2017 / 13:17
1
answer

Convert .log file to .txt in Bash

Hello, I would like to know how to convert a generated .log file into a container in Docker and convert it to a txt file using Bash.     
asked by 13.09.2017 / 15:55
1
answer

How to show only lines that appear more than x times. (shell script)

I am parsing a log file and I wanted to filter only lines that appear more than 10 times within the file. I just can not find a way to do this filter.     
asked by 22.11.2017 / 14:41
1
answer

Asterisk 13 - Substitute for the AgentCallbackLogin function

Is there a standard function to replace AgentCallbackLogin (discontinued in Asterisk 1.4 and removed in Asterisk 1.6)? By using the AgentCallbackLogin function, the agent can disconnect the call and it remains logged in, the AgentLogin...
asked by 07.03.2017 / 18:21
1
answer

Search with REGEX in the VI

I have a regex that is valid as per the test link , but in the vi it does not work: 2017\/04\/26 12:24:(.*)(89418644) Here is an example that this REGEX should get married: INFO | 2017/04/26 12: 24: 15,019 | [OrderEntryAvailableOutgoing...
asked by 26.04.2017 / 17:42
2
answers

Use of Uniq

I have been researching without much success, something that I believe in theory to be very simple, but I did not find the right command. I have a LOG file with several information, but certain information is repeated, but only in a certain c...
asked by 24.03.2017 / 23:27
1
answer

Apache2 is not accepting PUT request method

I tried to make a request of type PUT in a project of mine, but the following error is being returned:    The requested method PUT is not allowed for the /index.php URL I'm using PHP to make this request, but specifically using the...
asked by 07.09.2016 / 18:50
1
answer

Failed to connect to github.com port 443: Connection timed out

I'm trying to do a git push, or git pull, and half and aft it throws this error: fatal: unable to access 'https://github.com/tiagoferezin/meuRepositorio.git/': Failed to connect to github.com port 443: Connection timed out What can be happe...
asked by 02.06.2016 / 19:33