Questions tagged as 'linux'

1
answer

Shell script function

I have a VM and need to run a script remotely in another VM, for example: Script is in VM X and must be executed by X in VM Y. #!/bin/bash IP=$1 if [ $# -ne 1 ]; then echo "informe o servidor $1: " exit fi for machine in $1; do ssh...
asked by 08.02.2016 / 17:05
1
answer

List printers on the network with PHP

I need all the printers on the network to be listed in my application for the purpose of configuring it, but until then I'm finding it difficult to do so. In principle I'm using Windows on the application server, but I think of using Linux over...
asked by 05.04.2017 / 19:24
2
answers

Caused by: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which re

When trying to run a report containing a still image on an Amazon Linux server. The exception below appears. Has anyone ever been through this? Caused by: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed...
asked by 08.01.2016 / 01:02
1
answer

Regular expressions with 'grep'

I need to extract data from a text and I'm trying to do this using grep. But the way to make use of regular expressions with this command are quite different from what is usually done in Ruby or JavaScript, and I am not able to do what I need. I...
asked by 02.04.2015 / 23:13
2
answers

Script to open index.html from multiple folders

How to make a script in bash that: Based on this example url: link Select the 12620 folder. Open the index.html of this folder in a Firefox tab in Kali (Debian) Select folder 12620, add +1, getting 12621, and open index.html from tha...
asked by 20.09.2015 / 21:32
1
answer

Migration to Heroku

I am migrating the DB from my app to Heroku , deploy worked: $ git push heroku master When trying to migrate the database according to the command $ heroku run rake db:migrate does not work and returns the followi...
asked by 25.02.2015 / 17:35
1
answer

Recover Corrupted .gz file

I have a .gz file that is corrupted. Is it possible to extract the data from this file? Even if it's partially? This file is an sql database dump. Thanks.     
asked by 08.04.2014 / 21:56
1
answer

Is it possible to send an email by the "sendmail" command of a local machine?

I learned a short time ago to use my Amazon server to send emails with the sendmail command. It works perfectly. I wanted to know if I could do the same thing through my local machine. Because, theoretically, the server is also a machi...
asked by 18.07.2018 / 18:13
2
answers

Container LAMP with Debian Stretch

I did some searching on the internet and found no instructions to mount a LAMP container using the official Debian Stretch image ( link ). The idea would be to upload a Docker container with Apache2.4, PHP7.0 and MariaDB 10.3 (for that would be...
asked by 24.09.2017 / 02:10
1
answer

What do files with sock extension serve?

Some applications, such as PHP-FPM and MYSQL, usually use a file with the .sock extension. I always see this on Linux operating systems. Example: /var/run/mysql/mysql.sock As far as I understand it is related to socket connect...
asked by 05.06.2017 / 14:25