Questions tagged as 'linux'

0
answers

How do I configure routing in asterisk?

Colleagues come through this post to bring one more doubt to the community, I am doing a configuration in an Asterisk central that previously had 4 chips from 4 different carriers. Now this center has only 2 chips of a certain operator, before m...
asked by 18.05.2018 / 20:56
1
answer

Shared memory between Linux C processes (mathematical operations)

I am studying shared memory in C language and I need to make a simple program so that a shared variable starts with a value and then the program creates a child process where the variable is going to be incremented by 2 and then the parent proce...
asked by 04.03.2018 / 16:23
1
answer

Communication with baudrate 110

I have to receive data from an equipment that has a TTL interface that sends the data to 110 bits per second. In all the tests I performed when trying to reach this speed I have problems, for example: My program does not receive the 9 by...
asked by 23.01.2018 / 20:07
1
answer

Retrieve arguments passed via ARGV in the terminal

I have a make file. Inside this make file, I call this file that has this: set -f; echo $1 | bc I want to retrieve the value of the function in C for this makefile. Example: ./a.out "12 + 12" result: 24     
asked by 11.11.2017 / 08:39
1
answer

Create an environment variable for users without access to bash (/ sbin / nologin)?

I'm trying to create an environment variable that will be accessed by a php script by the user running httpd (user: apache). It is defined as /sbin/nologin and therefore does not access .profile , profile , .bashrc , etc...
asked by 12.11.2017 / 17:30
0
answers

Renaming multiple Linux files [closed]

I have several files: xaa.txt xab.txt xac.txt xad.txt até xcn.txt I need to rename all files to: nome1.txt nome2.txt nome3.txt etc... In order, that is, xaa.txt should be the name1.txt xab.txt should be the name2.txt and so on Is it...
asked by 19.12.2017 / 15:50
1
answer

Is it possible to install perlapi 5.14.2 in Debian 9? [closed]

I'm trying to install the perlapi-5.14.2 package on a Debian 9 linux server and am having the following return: Reading package lists... Done Building dependency tree Reading state information... Done Package perlapi-5.14.2 is a virtual...
asked by 20.10.2017 / 18:53
0
answers

Debug in C / C ++ in Visual Studio Code does not work (Linux Ubuntu)

I use the Visual Studio Code, and wanted to use its Debug in my C / C ++ files. There are a few BR tutorials on how to set up VS code debugging for Linux, even more in the language I use, and since I'm new to this text editor, I'm struggling....
asked by 22.02.2018 / 08:04
1
answer

Java configuration in fedora linux

I'm configuring JAVA and ANT in linux fedora, following a few steps I found on the internet, because I've never done that in linux. I configure them by the terminal because I am accessing the machine through SSH. I'm configuring it as follows:...
asked by 04.09.2017 / 20:01
0
answers

Connection redirection with tunneling proxy [closed]

I have two Ubuntu servers, one in Brazil and the other in the USA, in both of them I activated IP_FORWARD to be able to make a connection tunnel with them to the destination, well, I bought the two to do some ping tests, when I make the connecti...
asked by 07.11.2017 / 19:32