Questions tagged as 'linux'

1
answer

Violation of segment with assembler x86-64

In this assembler program, it happens that when doing the commands to create the file .lst and .o I do not have any problem, only when loading the program with ./programa I get the message    segment violation ('core gene...
asked by 25.09.2016 / 04:05
2
answers

Python script not executed from Cron

I'm trying to run a Python script from cron. Manually functional without problems. I have already tried all the solutions that can be found on the web. The crontab file is as follows: PATH=/usr/sbin:/usr/bin:/sbin/bin:/sbin:/bin:/home/p...
asked by 27.02.2017 / 16:03
2
answers

Should I complete this directive or not? php echo dirname (__ FILE__); ?

This I found as an example on the internet to know the path where I am in Linux (where you have the file to get the absolute path): <?php echo dirname(__FILE__); ?> Now my question is: what do I have to complete what is in parentheses...
asked by 02.05.2016 / 22:23
1
answer

Error installing Pillow on ubuntu 15.10 32 bits

The error that throws me is the following: $ pip install pillow Failed building wheel for pillow ... error: command 'i686-linux-gnu-gcc' failed with exit status 1 ...     
asked by 13.04.2016 / 09:16
0
answers

Error Tor AssertionError: Not supported proxy scheme socks5h

I was making a request with tor import requests proxies = {"http":"socks5h://locahost:9050","https":"socks5h://localhost:9050"} r = requests.get("http://httpbin.org/ip",proxies=proxies).content print r When executed, the error appears As...
asked by 30.12.2018 / 00:16
2
answers

Extract characters from a text file in Linux

I have a very basic question. I have the following text file (cdrag.txt) and I want to extract only the value (number) that is just after Cd : forceCoeffs forceCoeffs execute: Coefficients Cm : -3.99664 (pressure: -4.0...
asked by 16.06.2018 / 11:36
1
answer

What do these commands do? I do not understand them very well

I have some commands that I basically do not understand quite well and I would like someone with knowledge of OS linux to help me. find -name "*mp3*" -exec mv {} $HOME \ I know that I find it doing a search in all the directories where the...
asked by 16.04.2018 / 00:03
1
answer

I want to execute a command when starting my terminal, what do I do?

Good afternoon friends of stackoverflow I would like that when starting my terminal in ubuntu this command started directly neofetch since it is the one that tells me a lot how is my system.     
asked by 02.02.2018 / 16:57
3
answers

How do you compare chains in Bash?

I'm using Bash in Linux and I found an example in which I compared the strings in this way but apparently it does not work. In this case, $a is what the user writes to the console. #!/bin/bash a=$1 if [ "${a}"=="static" ]; then (inst...
asked by 17.02.2017 / 06:13
1
answer

Execute network service at startup on RHEL Server 7

I am working with the RHEL 7 server (MAIPO), but I have the problem that when restarting it, the network does not automatically raise and I have to press the button to start the network from the GUI. I understand that what happens is that the...
asked by 10.04.2018 / 23:02