Questions tagged as 'linux'

1
answer

Show contents of a file by opening the file with the content string of a variable

I have a problem to show the contents of a file using the following command: variavel="Affonso\,\ I.\ P..txt" cat < "$variavel" And running the same command on the terminal but without using a variable, it usually works like the followin...
asked by 29.07.2016 / 15:57
2
answers

Script or command to add all directories and show the total size

My question is as follows, I am developing a script where from a text list where you will have the name of the directories, the script pick up the name of each directory, show the size of each directory and then the total. Example: I need to...
asked by 31.07.2015 / 01:07
3
answers

Redirect from "domain.com.br" to "subdomain.xyz.com.br"

I'm having a redirection / pointing problem, and I think it's some bad server configuration. I have a VPS (digital ocean) running Ubuntu14 (terminal) with Apache, PHP5, MySql. I have full access to the DNS settings of this VPS and domains (Regis...
asked by 07.07.2015 / 15:36
1
answer

Apache server does not execute .php files [closed]

I just installed Apache and PHP in my linux, and all my .php files are showing this following error log:    [Sat Mar 07 12:10:48 2015] [error] [client :: 1] PHP Warning: Unknown:   failed to open stream: Permission denied in Unknown on line 0...
asked by 07.03.2015 / 16:35
1
answer

Configuring SVN on Amazon EC2 - User authentication is not required

I'm having trouble setting up SVN on an Amazon EC2 server that is managed by Bitnami. I actually created this machine to use Redmine , but I will also need SVN. I followed the instructions in the Bitnami wiki but could not finish the setup...
asked by 12.02.2015 / 19:14
1
answer

Define multiple variables in just one row

I would like to make a parser with just one line and break a string into several variables. In the string I will parse, the default is that each field is separated by a comma. On several lines, the code to do what I want would be like this:...
asked by 03.03.2014 / 18:49
1
answer

How to make a script accept autocomplete in bash script?

Let's say I have a script that asks for a user input as shown below Digite o caminho do arquivo: How do I make this input autocomplete the directories path in linux? I need this to avoid typing errors     
asked by 13.07.2018 / 03:52
2
answers

error message when trying to remove file

When I run the command root@debian-hy:/var/www/sys# rm teste.txt rm: cannot remove 'teste.txt': Operation not permitted Strange because I can edit the file and save, but when I close the vi it generates a swap file, it follows the permissio...
asked by 21.05.2015 / 13:44
1
answer

Retrieve value from PATH environment variable in Linux using Java

I did not find a good topic on this subject and decided to create this question for those who are experiencing this problem. When using System.getenv("PATH") , all values of this environment variable are not listed. Tested points: Exec...
asked by 19.10.2018 / 19:21
2
answers

How to use gtkmm-3 and standard input together?

I want to make a program with Gtk that reads data from standard input and interprets by doing drawings in a DrawingArea . The concept is simple, but I came across a problem: after I call Gtk::Application::run the only code writte...
asked by 28.03.2014 / 05:31