Questions tagged as 'linux'

1
answer

C Portability on Linux

I'm starting to use Compilr and there they use Linux. I'm having some problems like for example printing a text file. Look at my program, it works on windows: #include<stdio.h> /* escreva um programa que leia o nome de 10 pessoas e arm...
asked by 28.10.2014 / 12:03
2
answers

Virtual Machine does not share folder [closed]

Problem: Usage Virtual Box and MVWare in both programs can not share folder, using the internal option of Pasta Compartilha . Look at the images for a better understanding of the problem:   Photo1:PastaCompartilh...
asked by 25.02.2014 / 14:49
2
answers

Analyzing resource consumption by script

I have a server with Ubuntu Server 12.04 LTS OS, on this machine I have apache2 with PHP5 and PERL installed, but it consumes a lot of CPU resources, I would like to know if it is a problem script anymore for this I would have which review one b...
asked by 26.09.2014 / 14:57
1
answer

How to find unused files in a project?

We have a web project that has changed the layout several times and many files will no longer be used. However, as there are a number of developers using files at the same time, the old files were kept until the entire change was finalized. I...
asked by 26.06.2014 / 18:53
2
answers

Php5-imagick - Error installing on debian 7

I did not find any reference to what could be the error it displays when I try to install a php (php5-imagick) module. root@SMSA443:~# apt-get -f install php5-imagick php5-cgi Returns the message: root@SMSA443:~# apt-get install p...
asked by 11.02.2014 / 13:43
1
answer

Doubt about shell script

I'm studying linux, and it's my first contact with the shell script, the documentation I wanted to do is: #!/bin/bash if [ uname - m = "x86_64" ]; then echo "sua versão é de 64bits" else echo "sua versão é de 32bits" fi I tried to use...
asked by 01.09.2018 / 21:52
2
answers

Linux - Edit multiple files using another file as source

I have a file (listname.txt) with multiple names, one per line. I need to edit or remove all names that are in listanome.txt from various other files With grep I guess which files should be dictated, but are many. grep -Ff lista...
asked by 18.07.2018 / 20:03
1
answer

Linux - Copy only attributes of files in a folder [closed]

From the beginning ... I had a problem with my partitioning and I needed to clear my hard drive. I'm running Linux Mint 19 on Live-CD (USB) so I can copy the contents of my / home folder (which was on another partition - / dev / sda6 - and mount...
asked by 10.07.2018 / 22:49
1
answer

Problem executing a shell script using Zenity. Message: Gtk-Message: GtkDialog mapped without a parent transient. This is discouraged

When I run script.sh via linux shell, this message appears: Gtk-Message: GtkDialog mapped without a parent transient. This is discouraged. How do I resolve this? #!/bin/bash get_url () { url=$(zenity --entry --title="Youtube" --text="...
asked by 30.07.2018 / 02:04
1
answer

How to pass variable to PHP file in Shell Script

How can I do to pass a variable to a php file in a shell script, I'm trying to do that below, without success. php -f complete.php?login=$1     
asked by 20.08.2018 / 00:20