code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
dirname=robotframework-c-example
zipname=$dirname-$(date +%Y%m%d).zip
files="README.txt login.c LoginLibrary.py LoginTests.tsv Makefile"
rm -rf $dirname $zipname
mkdir $dirname
echo Copying...
for file in $files; do
cp -v $file $dirname
done
echo Zipping...
zip -r $zipname $dirname
rm -rf $dirname
ech... | Shell |
#!/bin/bash
base=`dirname $0`
ROBOT_SYSLOG_FILE=$base/tmp/syslog.txt python $base/src/robot/run.py -P $base/atest/testresources/testlibs -P $base/tmp -L debug -d $base/tmp "$@"
| Shell |
#!/bin/bash
pybot --outputdir results --exclude parallel atest/ | Shell |
#!/bin/bash
python src/robot/rebot.py $1 >/dev/null &
#/usr/lib/jvm/java-6-sun/jre/bin/java -Xmx1024m -Xss1024k -classpath /home/jth/opt/jython2.5.1/jython.jar: -Dpython.home=/home/jth/opt/jython2.5.1 -Dpython.executable=/home/jth/opt/jython2.5.1/jython org.python.util.jython src/robot/rebot.py $1 >/dev/null &
rebotpid... | Shell |
#! /bin/bash
# Binary of the Texturepacker:
TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker
# Shared Spritesheet-Output-Definitions:
SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/"
SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets"
SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src... | Shell |
#!/bin/bash
#
# a dead-simple webserver for viewing the demos locally.
#
# usage:
# demo-server <port-number>
# run from the root dir of the distribution since the demos depend on the
# copy of arbor.js in the lib subdirectory
cd `dirname $0`/..
# use default port if called without args
PORT=2600
if [[ $1 =~ ^[0-... | Shell |
#!/bin/bash
#
# a dead-simple webserver for viewing the demos locally.
#
# usage:
# demo-server <port-number>
# run from the root dir of the distribution since the demos depend on the
# copy of arbor.js in the lib subdirectory
cd `dirname $0`/..
# use default port if called without args
PORT=2600
if [[ $1 =~ ^[0-... | Shell |
#!/bin/bash
MUESTRAS=$1
VERBOSE=0
OPS[0]="NULA"
OPS[1]="SUMAS"
OPS[2]="RAIZ"
OPS[3]="STRINGS"
for op in ${OPS[*]}; do
cat /dev/null >$op.$MUESTRAS.hilos.csv
for i in {1..16}; do
tstamp=`date +"%T.%N"`
echo "$tstamp : Ejecutando operacion $op con $i hilos"
java -cp java/dist/SumasConc... | Shell |
#!/bin/bash
MUESTRAS=$1
VERBOSE=0
OPS[0]="NULA"
OPS[1]="SUMAS"
OPS[2]="RAIZ"
OPS[3]="STRINGS"
for op in ${OPS[*]}; do
cat /dev/null >$op.$MUESTRAS.hilos.csv
for i in {1..16}; do
tstamp=`date +"%T.%N"`
echo "$tstamp : Ejecutando operacion $op con $i hilos"
java -cp java/dist/SumasConc... | Shell |
#!/bin/bash
for i in $(seq 10); do go test >> out${i}.txt; done
| Shell |
#!/bin/bash
# local machine test
./shardkv_server -port=9002 -peers=:9003,:9004 -masters=:10001 -gid=900&
./shardkv_server -port=9003 -peers=:9002,:9004 -masters=:10001 -gid=900&
./shardkv_server -port=9004 -peers=:9002,:9003 -masters=:10001 -gid=900&
| Shell |
echo "======Start Another kv Server====="
./shardkv_server -port 9011 -masters :10001 -gid=901
| Shell |
echo "======Start Shardmaster and One kv Server====="
./d_kill.sh
rm -rf /var/tmp/824-*
./start_masters.sh
./start_group1single.sh &
./join.sh
| Shell |
echo "join 900 :9001" | ./shardmaster_client -masters :10001
echo "join 901 :9011" | ./shardmaster_client -masters :10001
| Shell |
#!/bin/bash
# local machine test
./shardkv_server -port=9012 -peers=:9013,:9014 -masters=:10001 -gid=901&
./shardkv_server -port=9013 -peers=:9012,:9014 -masters=:10001 -gid=901&
./shardkv_server -port=9014 -peers=:9012,:9013 -masters=:10001 -gid=901&
| Shell |
#!/bin/bash
go build shardmaster_client.go
go build shardmaster_server.go
go build shardkv_client.go
go build shardkv_server.go
| Shell |
echo "======Start All Servers====="
read -p ""
./d_kill.sh
rm -rf /var/tmp/824-*
./start_masters.sh
./start_group1.sh
./start_group2.sh
echo "join 900 :9001,:9002,:9003" | ./shardmaster_client -masters :10001
echo "join 901 :9011,:9012,:9013" | ./shardmaster_client -masters :10001
echo "======Put/Get Values===="
read -... | Shell |
#/bin/bash
kill `pgrep shard`
| Shell |
#!/bin/bash
# local machine test
./shardmaster_server -port=9001 &
./shardmaster_client -masters=:9001 -file=t_sm.txt
# cat t_sm.txt | ./shardmaster_client -masters=:9001
#./shardmaster_client -masters=9001
# in the shardmaster_client terminal
# join 100 :9002,:9003,:9004
# query
# quit
| Shell |
#/bin/bash
ps aux| grep shard | grep -v grep
| Shell |
./shardkv_server -port 9011 -masters :10001 -gid 901
| Shell |
#!/bin/bash
# local machine test
./shardkv_server -port=9002 -peers=:9003,:9004 -masters=:9001 -gid=100&
./shardkv_server -port=9003 -peers=:9002,:9004 -masters=:9001 -gid=100&
./shardkv_server -port=9004 -peers=:9002,:9003 -masters=:9001 -gid=100&
./shardkv_client -masters=:9001 -file=t_kv.txt
# cat t_kv.txt | ./shard... | Shell |
#!/usr/bin/env bash
./shardmaster_server -port 10001 & | Shell |
./shardkv_server -port 9001 -masters :10001 -gid 900 | Shell |
#!/bin/bash
./d_kill.sh
./start_masters.sh
./start_group1.sh
./start_group2.sh
echo "join 900 :9001,:9002,:9003" | ./shardmaster_client -masters :10001
echo "join 901 :9011,:9012,:9013" | ./shardmaster_client -masters :10001
| Shell |
./d_kill.sh
rm -rf /var/tmp/824-*
./start_masters.sh
./start_group1single.sh &
./start_group2single.sh &
./join.sh
#echo "Sleeping for reconfiguration to take effect"
sleep 1s
echo "Now suppose this transaction takes a loooooooooong time"
echo "pause" | ./shardkv_client -masters :10001
echo "puts 0 0 1 1 2 2 3 3 4 4 5 ... | Shell |
#!/bin/bash
env | grep -q "IniciadoW5"
if [ $? -ne 0 ]
then
echo "ERROR: Debe correr IniciarW5"
fi
for i in "$PROCDIR"/rglobales*
do
# Se obtiene el ID de patrón de la extención
ID_PAT="${i##*.}"
# Se obtiene la última ejecución para el patrón
SECUENCIA2=$("getParamW5" "SECUENCIA2")
# Se iteran las lín... | Shell |
#!/bin/bash
env | grep -q "IniciadoW5"
if [ $? -ne 0 ]
then
echo "ERROR: Debe correr IniciarW5"
fi
for i in "$PROCDIR"/rglobales*
do
# Se obtiene el ID de patrón de la extención
ID_PAT="${i##*.}"
# Se obtiene la última ejecución para el patrón
SECUENCIA2=$("getParamW5" "SECUENCIA2")
# Se iteran las lín... | Shell |
#!/bin/bash
function mostrarUso
{
echo "$0 <modoInstalacion> <modoCreacionPaquete>"
echo "Opciones:"
echo "<mododInstalación>: Si 'm' entonces manual. Si 'a', entonces automático."
echo "<modoCreacionPaquete>: Si 'l', entonces local. Si 's', entonces desde el SVN."
exit 1
}
if [ $# -ne 2 ]
then
mostrarUs... | Shell |
#!/bin/bash
tar -zxf 75-08-so-g2-tw.tgz
cd "./75-08-so-g2-tw/trunk/TP/bin/"
./InstalaW5
| Shell |
#!/bin/bash
rm -rf 75-08-so-g2-tw.tgz arribos/ confdir/ mae/ reportes/ aceptados/ bin/ log/ rechazados/ procesados/ 75-08-so-g2-tw/ arch_err
| Shell |
#!/bin/bash
function mostrarUso
{
echo "$0 <modoInstalacion> <modoCreacionPaquete>"
echo "Opciones:"
echo "<mododInstalación>: Si 'm' entonces manual. Si 'a', entonces automático."
echo "<modoCreacionPaquete>: Si 'l', entonces local. Si 's', entonces desde el SVN."
exit 1
}
if [ $# -ne 2 ]
then
mostrarUs... | Shell |
#!/bin/bash
function mostrarUso
{
echo "$0 [fuente]"
echo "fuente: (s|l)"
echo "(s)vn: Se descarga contenido del SVN y se crea el paquete"
echo "(l)ocal: Respetando la estructura de directorios del proyecto se crea el paquete a partir de los archivos locales (útil cuando se quiere probar alguna modificación qu... | Shell |
#!/bin/bash
function mostrarUso
{
echo "$0 [fuente]"
echo "fuente: (s|l)"
echo "(s)vn: Se descarga contenido del SVN y se crea el paquete"
echo "(l)ocal: Respetando la estructura de directorios del proyecto se crea el paquete a partir de los archivos locales (útil cuando se quiere probar alguna modificación qu... | Shell |
#!/bin/bash
rm -rf 75-08-so-g2-tw.tgz arribos/ confdir/ mae/ reportes/ aceptados/ bin/ log/ rechazados/ procesados/ 75-08-so-g2-tw/ arch_err
| Shell |
#!/bin/bash
tar -zxf 75-08-so-g2-tw.tgz
cd "./75-08-so-g2-tw/trunk/TP/bin/"
./InstalaW5
| Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
RED="0.5 0.5 0.5 0 0 0 0 0 0"
GREEN="0 0 0 0.5 0.5 0.5 0 0 0"
for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do
conv... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do
convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png
convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png
done
| Shell |
#!/bin/sh
# make sure ndk-build is in path
SCRIPTDIR=`dirname $0`
MUPDF=mupdf-0.9
FREETYPE=freetype-2.4.6
OPENJPEG=openjpeg_v1_4_sources_r697
JBIG2DEC=jbig2dec-0.11
JPEGSRC=jpegsrc.v8a.tar.gz
JPEGDIR=jpeg-8a
cd $SCRIPTDIR/../deps
tar xvf $FREETYPE.tar.bz2
tar xvf $JPEGSRC
tar xvf $MUPDF-source.tar.gz
tar xvf $OPENJPE... | Shell |
#!/bin/bash
if [ $# != 1 ]
then
echo "Usage: $0 emailAddress"
exit 1
fi
read -s -p "Password: " mypassword
echo ""
curl https://www.google.com/accounts/ClientLogin -d Email=$1 -d "Passwd=$mypassword" -d accountType=GOOGLE -d source=Google-cURL-Example -d service=ac2dm
| Shell |
#!/bin/sh
# Create a backup tar gzip file of the cwd with the date appended
# located in the parent directory.
FILENAME=../`pwd|xargs basename`-`date -j "+%Y-%m-%d"`.tgz
echo Will create $FILENAME
tar cfz $FILENAME .
echo Done.
| Shell |
#!/bin/sh
# Need to run a full clean install when changing the request factory interfaces
# Doing so deletes the local debug app engine database
# This script backs that up first
SRC=shuffle-app-engine/target/shuffle-app-engine-2.0.0-SNAPSHOT/WEB-INF/appengine-generated
DEST=../db_backup
rm -r $DEST
mkdir $DEST
cp -... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2010 gelin, 2011 mihovilic
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2012 gelin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) an... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2010 gelin, 2011 mihovilic
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2010 gelin, 2011 mihovilic
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2012 gelin, 2011 mihovilic
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2010 gelin, 2011 mihovilic
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at... | Shell |
#!/bin/sh
#
# Android Weather Notification.
# Copyright (C) 2010 Denis Nelubin aka Gelin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# ... | Shell |
#!/bin/sh
TARGETS=$*
buildin() {
BASE_DIR=$(pwd)
cd $1
ant $TARGETS
cd $BASE_DIR
}
buildin core
buildin skins/black-text
buildin skins/white-text
buildin skins/black-text-plus
buildin skins/white-text-plus
buildin skins/bigger-text
| Shell |
#!/bin/bash
# Autor: Carlos Pantelides 74901
#
# Test para listarc.pl
#bootstrap
export GRUPO=/home/carlos/7508/7508fiuba2011g2/trunk
export DIRECTORIO_LIB=$GRUPO/grupo2/lib
fixture1() {
export DIRECTORIO_MAESTROS=$GRUPO/test/fixtures/maestros
export DIRECTORIO_YA=$GRUPO/test/fixtures/ya
export ARCHIVO_ENCUESTA... | Shell |
#!/bin/bash
# Autor: Carlos Pantelides 74901
#
# Test para listarc.pl
#bootstrap
export GRUPO=/home/carlos/7508/7508fiuba2011g2/trunk
export DIRECTORIO_LIB=$GRUPO/grupo2/lib
fixture1() {
export DIRECTORIO_MAESTROS=$GRUPO/test/fixtures/maestros
export DIRECTORIO_YA=$GRUPO/test/fixtures/ya
export ARCHIVO_ENCUESTA... | Shell |
#! /bin/sh
# $Id: shunit2_test_failures.sh 213 2008-08-30 17:07:59Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
#
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit test for failure funct... | Shell |
#! /bin/sh
# $Id: shunit2_test.sh 238 2008-10-22 00:11:24Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit test suite runner.
#
# This scrip... | Shell |
# $Id: shunit2_test_helpers 213 2008-08-30 17:07:59Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
#
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit test common functions
# treat unset ... | Shell |
#! /bin/sh
# $Id: shunit2_test_failures.sh 213 2008-08-30 17:07:59Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
#
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit test for failure funct... | Shell |
#! /bin/sh
# $Id: shunit2_test_macros.sh 256 2008-10-28 23:47:26Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
#
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit test for macros
# load ... | Shell |
#! /bin/sh
# $Id: shunit2_test_misc.sh 230 2008-10-07 23:16:19Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
#
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit tests of miscellaneous thi... | Shell |
#! /bin/sh
# $Id: shunit2_test_asserts.sh 214 2008-08-30 17:27:51Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
#
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit test for assert functio... | Shell |
#! /bin/sh
# $Id: shunit2_test_asserts.sh 214 2008-08-30 17:27:51Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
#
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit test for assert functio... | Shell |
#! /bin/sh
# $Id: shunit2_test.sh 238 2008-10-22 00:11:24Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit test suite runner.
#
# This scrip... | Shell |
#! /bin/sh
# $Id: shunit2_test_macros.sh 256 2008-10-28 23:47:26Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
#
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit test for macros
# load ... | Shell |
#! /bin/sh
# $Id: shunit2_test_misc.sh 230 2008-10-07 23:16:19Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
#
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit tests of miscellaneous thi... | Shell |
# $Id: shunit2_test_helpers 213 2008-08-30 17:07:59Z kate.ward@forestent.com $
# vim:et:ft=sh:sts=2:sw=2
#
# Copyright 2008 Kate Ward. All Rights Reserved.
# Released under the LGPL (GNU Lesser General Public License)
#
# Author: kate.ward@forestent.com (Kate Ward)
#
# shUnit2 unit test common functions
# treat unset ... | Shell |
#!/bin/bash
# Generador del paquete de instalacion
# Autor: Carlos Pantelides 74901
ACTUAL=$PWD
cd $(dirname $0)
if [ $? -ne 0 ]; then
echo "Error"
exit 1
fi
chmod 755 ./grupo2/inst/instalarC.sh
tar -pczf $ACTUAL/grupo2.tgz \
./grupo2/inst/instalarC.sh \
./grupo2/inst/comandos/detectarC.sh \
./grupo2/inst/comandos... | Shell |
#!/bin/bash
#======================================================================================
# AUTOR: Maximiliano Gismondi
#
# ARCHIVO: sumarC.sh
#
# USO: sumarC.sh
#
# CÓD ERROR: 0: Ejecución exitosa.
# 1: Variable GRUPO o LIBDIR no inicializada.
# 2: Script loguearC no encontrado.
# ... | Shell |
#!/bin/bash
#Comando: iniciarC.sh
#Autor: Magnaghi, Pablo
#Padrón: 88126
#VERIFICO PARAMETROS
#Si la cantidad de parámetros, exceptuando al cero, es mayor a cero
#muestro un mensaje de error
echo $0 | grep -q -e 'bash'
if [ $? -ne 0 ]; then
echo "Este comando debe invocarse como \". iniciarC.sh\""
exit 1
fi
if [... | Shell |
#!/bin/bash
#Inicializo variables
ARCHIVO_CONF="$GRUPO/conf/instalarC.conf"
. $ARCHIVO_CONF
#Escribo el pid de la aplicacion en el archivo .data.txt
pid=$(ps | grep -m 1 detectarC.sh | awk '{ print $1 }');
echo $pid > $LIBDIR/.data.txt;
if [ $? -ne 0 ]; then
loguearC.sh detectarC SE "No se pudo crear el archivo te... | Shell |
#!/bin/bash
#======================================================================================
# AUTOR: Maximiliano Gismondi
#
# ARCHIVO: sumarC.sh
#
# USO: sumarC.sh
#
# CÓD ERROR: 0: Ejecución exitosa.
# 1: Variable GRUPO o LIBDIR no inicializada.
# 2: Script loguearC no encontrado.
# ... | Shell |
#!/bin/bash
#Comando: iniciarC.sh
#Autor: Magnaghi, Pablo
#Padrón: 88126
#VERIFICO PARAMETROS
#Si la cantidad de parámetros, exceptuando al cero, es mayor a cero
#muestro un mensaje de error
echo $0 | grep -q -e 'bash'
if [ $? -ne 0 ]; then
echo "Este comando debe invocarse como \". iniciarC.sh\""
exit 1
fi
if [... | Shell |
#!/bin/bash
#Inicializo variables
ARCHIVO_CONF="$GRUPO/conf/instalarC.conf"
. $ARCHIVO_CONF
#Escribo el pid de la aplicacion en el archivo .data.txt
pid=$(ps | grep -m 1 detectarC.sh | awk '{ print $1 }');
echo $pid > $LIBDIR/.data.txt;
if [ $? -ne 0 ]; then
loguearC.sh detectarC SE "No se pudo crear el archivo te... | Shell |
#!/bin/bash
################################### INSTALARC #######################################
# #
# Uso: instalarC.sh #
# ... | Shell |
#!/bin/bash
################################### INSTALARC #######################################
# #
# Uso: instalarC.sh #
# ... | Shell |
#!/bin/bash
#stopD
ARCHIVO_CONF="$GRUPO/conf/instalarC.conf"
. $ARCHIVO_CONF
if [ -e $LIBDIR/.data.txt ]; then
loguearC.sh stopD I "Parando el demonio"
rm $LIBDIR/.data.txt;
else
loguearC.sh stopD A "El demonio ya fue detenido"
fi
| Shell |
#!/bin/bash
################################### LOGUEARC ########################################
# #
# Uso: loguearC.sh <comando que lo usa> <tipo de mensaje: I,A,E,SE> <mensaje> #
# #
# Errores: 1-Cantidad erronea de... | Shell |
#!/bin/bash
#startD.sh
ARCHIVO_CONF="$GRUPO/conf/instalarC.conf"
. $ARCHIVO_CONF
if [ -e $LIBDIR/.data.txt ]; then
loguearC.sh startD A "El demonio ya esta inicializado"
sleep 3
else
loguearC.sh startD I "Arrancando demonio"
$BINDIR/detectarC.sh &
sleep 3
fi;
| Shell |
#!/bin/bash
################################### MOVERC ##########################################
# #
# Uso: moverC.sh <origen> <destino> [<comando que invoca>] #
# #
# Errores: 1-Cantidad erronea de argumentos.... | Shell |
#!/bin/bash
################################### MIRARC ##########################################
# #
# Uso: mirarC.sh <comando que lo usa> [<filtros>] #
# #
# Filtros posible: -n=<numero de lineas> ... | Shell |
#!/bin/bash
#startD.sh
ARCHIVO_CONF="$GRUPO/conf/instalarC.conf"
. $ARCHIVO_CONF
if [ -e $LIBDIR/.data.txt ]; then
loguearC.sh startD A "El demonio ya esta inicializado"
sleep 3
else
loguearC.sh startD I "Arrancando demonio"
$BINDIR/detectarC.sh &
sleep 3
fi;
| Shell |
#!/bin/bash
################################### MOVERC ##########################################
# #
# Uso: moverC.sh <origen> <destino> [<comando que invoca>] #
# #
# Errores: 1-Cantidad erronea de argumentos.... | Shell |
#!/bin/bash
################################### LOGUEARC ########################################
# #
# Uso: loguearC.sh <comando que lo usa> <tipo de mensaje: I,A,E,SE> <mensaje> #
# #
# Errores: 1-Cantidad erronea de... | Shell |
#!/bin/bash
#stopD
ARCHIVO_CONF="$GRUPO/conf/instalarC.conf"
. $ARCHIVO_CONF
if [ -e $LIBDIR/.data.txt ]; then
loguearC.sh stopD I "Parando el demonio"
rm $LIBDIR/.data.txt;
else
loguearC.sh stopD A "El demonio ya fue detenido"
fi
| Shell |
#!/bin/bash
################################### MIRARC ##########################################
# #
# Uso: mirarC.sh <comando que lo usa> [<filtros>] #
# #
# Filtros posible: -n=<numero de lineas> ... | Shell |
# copiar este archivo a setGrupoXXXX.sh y modificar la ruta
# este script se ejecuta para inicializar el entorno en lugar de iniciard.sh
export GRUPO=/home/carlos/7508/7508fiuba2011g2/trunk
export DIRECTORIO_LIB=$GRUPO/grupo2/lib
export DIRECTORIO_MAESTROS=$GRUPO/grupo2/inst/mae
export DIRECTORIO_YA=$GRUPO/test/fixtur... | Shell |
#!/bin/bash
# Generador del paquete de instalacion
# Autor: Carlos Pantelides 74901
ACTUAL=$PWD
cd $(dirname $0)
if [ $? -ne 0 ]; then
echo "Error"
exit 1
fi
chmod 755 ./grupo2/inst/instalarC.sh
tar -pczf $ACTUAL/grupo2.tgz \
./grupo2/inst/instalarC.sh \
./grupo2/inst/comandos/detectarC.sh \
./grupo2/inst/comandos... | Shell |
#!/bin/sh
for directorio in `ls -d tp1*`; \
do \
cd "$directorio"; \
if [ ! -e "Makefile" ]
then
ln -s ../Makefile Makefile
fi
if [ ! -e "utils" ]
then
ln -s ../utils utils
fi
if [ ! -e "ipc" ]
then
ln -s ../ipc ipc
fi
cd ..; \
done
| Shell |
#!/bin/sh
yo=`whoami`
colas=`ipcs -q | tr -s " \t" | grep "$yo 666" | cut -d\ -f2`
memorias=`ipcs -m | tr -s " \t" | grep "$yo 666" | cut -d\ -f2`
semaforos=`ipcs -s | tr -s " \t" | grep "$yo 666" | cut -d\ -f2`
for e in $colas; do
ipcrm -q $e; \
done
for e in $memorias; do
ipcrm -m $e; \
done
for e in $semafo... | Shell |
#!/bin/sh
yo=`whoami`
colas=`ipcs -q | tr -s " \t" | grep "$yo 666" | cut -d\ -f2`
memorias=`ipcs -m | tr -s " \t" | grep "$yo 666" | cut -d\ -f2`
semaforos=`ipcs -s | tr -s " \t" | grep "$yo 666" | cut -d\ -f2`
for e in $colas; do
ipcrm -q $e; \
done
for e in $memorias; do
ipcrm -m $e; \
done
for e in $semafo... | Shell |
#!/bin/sh
nombres="lanzador arribos persona puerta"
for p in $nombres; do
for e in `pidof $p`; do
echo "Matando el proceso ($p): $e"; \
kill -9 $e; \
done
done
| Shell |
#!/bin/sh
nombres="lanzador arribos persona puerta"
for p in $nombres; do
for e in `pidof $p`; do
echo "Matando el proceso ($p): $e"; \
kill -9 $e; \
done
done
| Shell |
#!/bin/sh
for directorio in `ls -d tp1*`; \
do \
cd "$directorio"; \
if [ ! -e "Makefile" ]
then
ln -s ../Makefile Makefile
fi
if [ ! -e "utils" ]
then
ln -s ../utils utils
fi
if [ ! -e "ipc" ]
then
ln -s ../ipc ipc
fi
cd ..; \
done
| Shell |
#!/bin/sh
for directorio in `ls -d tp1*`; \
do \
cd "$directorio"; \
if [ ! -e "Makefile" ]
then
ln -s ../Makefile Makefile
fi
if [ ! -e "utils" ]
then
ln -s ../utils utils
fi
if [ ! -e "ipc" ]
then
ln -s ../ipc ipc
fi
cd ..; \
done
| Shell |
#!/bin/bash
host=$1
int=0;
if [ $# -lt 1 ]; then
echo "Falta el parametro requerido del nombre de host a configurar."
echo "Uso: $0 [Nombre_de_host]";
echo "";
exit;
fi;
#uno=`ping -c 3 -l 3 -W 2 $host 2>&1 | grep -E "(100% packet loss|unknown host)" | wc -l`;
#if [ "$uno" != 1 ]; then
# echo "No estoy seguro de... | Shell |
#!/bin/sh
echo "==Limpieza de interfaces de red=="
# Dar de baja cualquier interfaz virtual.
for interface in `ifconfig -a -s | grep "eth0:" | cut -f 1 -d" "`; do
ifconfig $interface down;
done;
red_nombre="Subred"
red_direccion=$1
if [ -z "$red_direccion" ]; then
red_direccion=`grep $red_nombre <redes.csv | cut -f... | Shell |
#!/bin/bash
host=$1
int=0;
existe=`grep "$host$" <hosts | wc -l`;
if [ "$existe" == "0" ]; then
echo "El hosts no existe."
exit;
fi;
echo "==Levantando interfaces del host \"$host\"==";
grep "$host$" <hosts | while read entrada; do
echo "$entrada";
e=($entrada);
host_ip=${e[0]};
nombre=${e[1]};
red_nombre="... | Shell |
#!/bin/bash
echo "" >>/etc/hosts
echo "#TP7574-czelada" >>/etc/hosts
cat hosts >>/etc/hosts
| Shell |
#!/bin/bash
host=$1
int=0;
existe=`grep "$host$" <hosts | wc -l`;
if [ "$existe" == "0" ]; then
echo "El hosts no existe."
exit;
fi;
echo "==Levantando interfaces del host \"$host\"==";
grep "$host$" <hosts | while read entrada; do
echo "$entrada";
e=($entrada);
host_ip=${e[0]};
nombre=${e[1]};
red_nombre="... | Shell |
#!/bin/bash
host=$1
int=0;
if [ $# -lt 1 ]; then
echo "Falta el parametro requerido del nombre de host a configurar."
echo "Uso: $0 [Nombre_de_host]";
echo "";
exit;
fi;
#uno=`ping -c 3 -l 3 -W 2 $host 2>&1 | grep -E "(100% packet loss|unknown host)" | wc -l`;
#if [ "$uno" != 1 ]; then
# echo "No estoy seguro de... | Shell |
#!/bin/sh
echo "==Limpieza de interfaces de red=="
# Dar de baja cualquier interfaz virtual.
for interface in `ifconfig -a -s | grep "eth0:" | cut -f 1 -d" "`; do
ifconfig $interface down;
done;
red_nombre="Subred"
red_direccion=$1
if [ -z "$red_direccion" ]; then
red_direccion=`grep $red_nombre <redes.csv | cut -f... | Shell |
#!/bin/bash
echo "" >>/etc/hosts
echo "#TP7574-czelada" >>/etc/hosts
cat hosts >>/etc/hosts
| Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.