Questions tagged as 'linux'

3
answers

Extract text between two words

As the title says I want to extract the text between two words. For that, it occurred to me to create a system with the command sed that would allow me to substitute what I was looking for then with greep and cut extract it. But the result...
asked by 25.01.2017 / 04:41
1
answer

Script launched from rule udev stays zombie when launching a new process

I'm trying to use a udev rule to launch a dbus client from a script. The udev rule will jump when a pendrive is connected, and execute the script usbdevinserted.sh , which will copy the identifier of the pendrive to a file and launch th...
asked by 31.03.2018 / 22:42
2
answers

Is it safe to give 777 permissions to the folder where I have my PHP web project?

I want to give full permissions to my lampp folder, where I have my php installed. What I did was: sudo chmod -R 777 /opt/lampp Currently I do not have another because I can not generate a document with php using its function fopen()...
asked by 20.10.2017 / 21:13
1
answer

AtributeError in Pygame

In the process of executing this Pygame code, the following error appears on my terminal regardless of the corrections made to the code: AttributeError: 'naveEspacial' object has no attribute 'dibujar' How can I correct my code of this erro...
asked by 08.02.2016 / 14:06
2
answers

Add random string to the name of the files

I'm developing a Bash script that takes all the images I have in the folder and adds a random string before the extension. That random string would be different for each file. The images are something like "01.jpg", "02.jpg" ... And the idea...
asked by 08.02.2018 / 17:41
2
answers

Value returned by a simple order (128 + n)

Good evening to the stack community. I am studying man bash, and in "shell grammar" I have a doubt, which, in principle, is not strictly programming, so if it is considered out of place (I hope you tell me if it is), edit to delete it . Accor...
asked by 21.12.2018 / 00:04
2
answers

How can permissions be established without conflicts between users and groups?

I'm having trouble finding a balance between the owners' permissions and groups of directories and files. As the development of the application progresses, the intervening processes increase. And each of them run with different owners and gro...
asked by 27.03.2017 / 13:09
2
answers

Using rsync with patterns

How can I make copies of only the files whose names are similar to ones patterns ( patterns ) ? I tried using rsync , but either nothing is copied or everything is copied. These questions in SO in English did not help me: rsync inclu...
asked by 09.12.2015 / 02:55
1
answer

InsecurePlatformWarning when using pip on Ubuntu

I am observing an alert message (not an error) InsecurePlatformWarning when executing the pip command in Linux: $ pip search reportlab /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90:...
asked by 02.12.2015 / 15:39
3
answers

Forbidden, error 403 with Apache / 2.4.6

I am configuring Apache / 2.4.6 on a Centos 7 server. I have created a virtual host in the following way: <VirtualHost {IP}:80-> ServerAdmin admin@localhost DocumentRoot /home/monkey/site/public ServerName www.monkey.net:80...
asked by 29.01.2016 / 02:46