Archivo del Autor: carlosap

table name from table number.

Para listar todas las tablas: for each _file  no-lock where _file._hidden = no,      each _field no-lock where _field._file-recid = recid( _file ):   display _file._file-number.   display _file._file-name _field._field-name. end. ————————————————————– Or, the quick ‘n dirty version: Code: find _file no-lock where _file._file-number = 7. /* change this number */ display _file._file-name.

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