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: Bash String Comparison: Find Out IF a Variable Contains a… »

Handel

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

Enabling FTP on with Mountain Lion

Enabling FTP on with Mountain Lion If you have Lion or Mountain Lion, you may mention that FTP option is gone from Sharing options. No worries, FTP server is still there, even if it is a regular installation and not Server one. No enable FTP server, run from Terminal.app sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist… Leer más: Enabling FTP on with Mountain Lion »

[TUTO] Install and SetUp minidlna media server

In case of using ssh, Connect : Code: Select all ssh [email protected] Enter password (default «raspberry»), then tty command line appears Code: Select all pi@raspberrypi~: I recommend updating everything before intallation : Update package list: Code: Select all sudo apt-get update Update packages: Code: Select all sudo apt-get upgrade Mount hard drive automatically : Use… Leer más: [TUTO] Install and SetUp minidlna media server »