Questions tagged as 'linux'

1
answer

Do .htaccess files work on Google Cloud VMs?

I have a project in an instance of Compute Engine (GCP) which develops it in PHP, HTML, CSS, JS and MySQL persistence. The problem is this: When testing the project on a local server (XAMP) it works correctly but when you migrate everything t...
asked by 10.03.2018 / 17:22
1
answer

why PHP Script does not run, but if it runs "phpinfo ();"?

I am working with a LAMP architecture, with apache2 server, php7.0 and MYSql, in ubuntu 16.04, and managed to configure the route for my development, in this case, that goes from /var/www/ to /var/www/html/midesarrollo , to prove it...
asked by 06.04.2018 / 02:34
1
answer

Backup only directories

Currently in our company we have a server linux in which different folders are created daily and we need you to save only the structure of the folders without the information.     
asked by 23.06.2017 / 18:52
1
answer

Crontab in linux for backup

I made a sh in linux to extract in a compressed folder the copy of my MySql database. (Here's the sh) #!/bin/sh mysqldump -unombreusuario -pclave --opt nombrebd > nombrecarpeta/nombrebackup_$(date +%d%m%Y).sql cd nombrecarpeta tar -zcvf nom...
asked by 22.08.2016 / 19:51
3
answers

How to use for cycle in bash script?

I have a little bash script that does not work the way I want to Here is the code #! /bin/bash echo "Escriba la cantidad de letras" read x for i in $x;do echo "Letra $i" read y echo $y done #export Mensaje #./recibir.sh Image of the log...
asked by 10.11.2016 / 21:45
2
answers

How to make my website visible with a public ip?

I would like to know what is the way that I can access from any computer to my website that would be inside my laptop converted into a temporary server, I would like to do this by means of the public and only ip that I have at the moment, Curren...
asked by 21.07.2017 / 00:21
1
answer

How to generate output with colors from shell script bash to file and maintain the colors?

I'm developing a utility in a bash shell script (file.sh), I can generate colors when the output goes to console, for example with a code like: echo -e "\e[1;33m Aqui el mensaje \e[0m"; But my idea is to create a log file as identical as po...
asked by 29.10.2018 / 18:27
2
answers

Execute bash script, from python, with script in the PATH

I have a folder with multiple scripts that I want to call from Python. I have added the folder to the PATH to be able to call these from any directory. And it has been added correctly: user@myuser:~ export PATH=$PATH:~/misScripts user@myus...
asked by 23.08.2018 / 13:54
1
answer

C linux: Simulate shell behavior with pipes

As the title indicates I am trying to perform an exercise to emulate the behavior of the shell in the execution of a sentence with the form comando1 argumento1 | comando2 argumento2 This program opens a pipe and creates a child by callin...
asked by 28.06.2018 / 13:21
1
answer

problem when installing headers in kali linux

Hello, I was trying to install the headers in my kali linux to solve an error that I got in virtual box for this I do the following: $ dpkg -i linux-kbuild-4.6_4.6.4-1kali1_i386.deb $ dpkg -i linux-headers-4.6.0-kali1-common_4.6.4-1kali1_i386....
asked by 10.02.2017 / 13:35