Copy /etc/hosts with scp from multiple servers with cygwin

Copy /etc/hosts with scp from multiple servers with cygwin

This one was easy, first create a file (hosts_ip.txt) with the IP of each server to get its /etc/hosts: Vim 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6 192.168.0.7 12345 192.168.0.3192.168.0.4192.168.0.5192.168.0.6192.168.0.7 Generate a private/public pair key and...
Creating a .deb package

Creating a .deb package

Two days ago I had an interview in a Buenos Aires’ software company. They decided to test my Linux skills with a simple task, to create a .deb package with certain characteristics. They provided to me a binary in Python (which you can download here) that runs in...
Logging a bash script

Logging a bash script

Hoy leí un artículo muy interesante para crear el log de la ejecución de un script en bash. Existen muchos métodos, tales como bash -x, script (utilidad) o la famosa redirección “>>”.Este particularmente utiliza exec. Simplemente basta con agregar al...