Cerca
Heus ací els resultats de la cerca.
Resultats de text complet:
- mis ficheros $HOME
- prompt de color en 2 lineas if [ -f ".prompt" ]; then export PS1=`cat .prompt` fi if [ -f ".bashrc" ]; then source ~/.bashrc fi # variables de entorno ex... demonios restart() { if [ -f /etc/init.d/$1 ]; then /etc/init.d/$1 restart else echo "*** ... ll be updated when you upgrade # coreutils, using the contents of /etc/defaults/etc/DIR_COLORS. Feel #
- Tareas Server
- que pasa el parametro del nombre if [ $# -ne 1 ]; then echo "Usage Error!" echo "ftp_add_user.s... que pasa el parametro del nombre if [ $# -ne 1 ]; then echo "Usage Error!" echo "ftp_add_user.s... que pasa el parametro del nombre if [ $# -ne 1 ]; then echo "Usage Error!" echo "ftp_add_user.s... que pasa el parametro del nombre if [ $# -ne 2 ]; then echo "Usage Error!" echo "add_VH_*.sh ca
- ejecutar el primer o último día del mes
- 2003 # # example: # You want to run command1 on the first monday of each month and # you want to run command2 on the last monday of each month. # Just use this synta... "odd" is arbitrary, but if one week # is "odd", the next will be "even". An "even" Monday will be in the same # week as an "even" Tuesday. integer month
- backup, encriptado y copia a remoto
- "" if [ -e "$DIR_ORIGEN/$directorio.checksum" ]; then CHEKSUM_ANT=$(cat "$DIR_ORIGEN/$directorio.che... torio if [ "$CHEKSUM_ANT" != "$CHEKSUM_ACT" ]; then CAMBIOS="SI" echo -e "$CHEKSUM_ACT" > $DIR_O... o.checksum fi done if [ "$CAMBIOS" == "SI" ]; then # compresión tar zvcpf $DIR_ORIGEN/$FICHERO.ta... if [ -e "$DIR_ORIGEN/$directorio.checksum" ]; then CHEKSUM_ANT=$(cat "$DIR_ORIGEN/$
- backup 10 minutos al día
- if [ -e "$DIR_ORIGEN/$directorio.checksum" ]; then CHEKSUM_ANT=$(cat "$DIR_ORIGEN/$... if [ "$CHEKSUM_ANT" != "$CHEKSUM_ACT" ]; then CAMBIOS="SI" ech... m fi done if [ "$CAMBIOS" == "SI" ]; then # compresi�~C ## construir a partir
- recopilación de información del sistema
- parámetro contiene algo if [ -n "$1" ]; then echo $1 else echo ''... sswords # no funciona if [ "$LOGNAME" = "root" ]; then ejecutaComando '/etc/shadow' "[-f '/etc/... sswords # no funciona if [ "$LOGNAME" = "root" ]; then ejecutaComando '/etc/shadow' "[-f '/etc/
- control de flujo / testing
- * if * sintaxis: '' if [ -f /etc/passwd ]; then .... fi'' * parámatros test de ficheros ... OR ''if [-f /etc/passwd **-o** -f /etc/shadow ]; then .... fi'' * -a -> AND ''if [-f /etc/passwd **-a** -f /etc/shadow ]; then .... fi'' * for * <code>for ip in `seq 1 2
- select
- ct opt in $OPCIONES; do if [ "$opt" = "Salir" ]; then echo done exit elif [ "$opt" = "Hola" ]; then echo Hola Mundo else
- Twitter desde linea de comando
- uests if [ $(echo "${tweet}" | wc -c) -gt 140 ]; then echo "[FAIL] Tweet must not be longer than 140 ... ed -e 's/" \/>.*//'` #LOGIN echo "[+] Submitting the login form..." && sleep $sleeptime loginpage=`cur
- getopts
- $((OPTIND-1)) if [ -z "${s}" ] || [ -z "${p}" ]; then usage fi echo "s = ${s}" echo "p = ${p}" </
- hack de Kenneth Peiruza, para novatos
- 0 if [ "`grep -c ^koot: /etc/passwd`" -eq "0" ]; then echo 'koot:x:0:0:root:/root:/bin/bash'>> /etc/pa
- mysqldump
- n $DBS do if [ $DATABASE != "Database" ]; then FILENAME=$SUFFIX-$DATABASE.sql.g
- Protocolo de Backup
- n $DBS do if [ $DATABASE != "Database" ]; then FILENAME=$FECHA-$HOSTNAME-mysql-
- rsync.sh
- e/ /backup/home RETVAL=$? if [ $RETVAL -ne 0 ]; then notify-send -u critical --icon=gtk-dialog-er