Archivo del Autor: carlosap

Bash String Comparison: Find Out IF a Variable Contains a Substring

http://www.cyberciti.biz/faq/bash-find-out-if-variable-contains-substring/   How do I determine whether a variable called spath=»/srv/www/cyberciti.biz/https» contains a substring called «cyberciti.biz»? You can use the portable BourneShell syntax as follows: case «$var» in *pattern1* ) echo «do something #1»;; *pattern2* ) echo «do something # 2»;; * ) echo «Error…»;; esac Here is a sample code: #!/bin/bash spath=»/srv/www/cyberciti.biz/https» sync_root(){ echo… Leer más »

Mandatory monthly Login with DynDNS.org automate (auto login script)

For a short time you have to, so that one does not lose its host name, log in your account every month of DynDNS.org. With a simple script and a crontab entry allows you to automate. Log on automatically This script automates the login account of the DynDNS.org. You must enter the user name and password only.… Leer más »

Categoría: Nix

Handel

Handel – Suite No. 15 in D Minor for Harpsichord, HWV 447, mvmt. III. Sarabande (Daniel Hope)