code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # MegaMek - # Copyright (C) 2005 Ben Mazur (bmazur@sev.org) # # 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) # any l...
Shell
#!/bin/bash ### BEGIN INIT INFO # Provides: 6rd # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: 6RD Configuration Script # Description: Bring up/down 6RD interface ### END INIT INFO # /etc/init.d/6rd ###################################...
Shell
#!/bin/bash ### BEGIN INIT INFO # Provides: 6rd # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: 6RD Configuration Script # Description: Bring up/down 6RD interface ### END INIT INFO # /etc/init.d/6rd ###################################...
Shell
#!/bin/bash ### BEGIN INIT INFO # Provides: 6rd # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: 6RD Configuration Script # Description: Bring up/down 6RD interface ### END INIT INFO # /etc/init.d/6rd ###################################...
Shell
#!/bin/bash ### BEGIN INIT INFO # Provides: 6rd # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: 6RD Configuration Script # Description: Bring up/down 6RD interface ### END INIT INFO # /etc/init.d/6rd ###################################...
Shell
#!/bin/bash # $1 should be the mask # $2 should be the IP # Licence at the bottom of the file. # This scripts considers only the case where the ISP embeds the full IPv4 /32 in the v6. usage () { echo "The $1 you provided is incorrect." } function ipv6tohex { # Returns the first IPv6 /32 in hex without : ...
Shell
#!/bin/bash # $1 should be the mask # $2 should be the IP # Licence at the bottom of the file. # This scripts considers only the case where the ISP embeds the full IPv4 /32 in the v6. usage () { echo "The $1 you provided is incorrect." } function ipv6tohex { # Returns the first IPv6 /32 in hex without : ...
Shell
#!/bin/bash # vim: set filetype=bash tabstop=4 ### BEGIN INIT INFO # Provides: 6rd # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: 6RD Configuration Script # Description: Bring up/down 6RD interface ### END INIT INFO # /etc/init.d/6rd ...
Shell
# vim: set filetype=bash glob_6rd_net="2001:db8::/28" # 6RD prefix of your ISP. They provide it to you. glob_6rd_br="128.66.0.1" # 6RD Anycast BR of your ISP. glob_6rd_iface="6rdtun" # Name of the interface for the 6rd tunnel # Interfaces. They can be the same if this box is not routing ipv4. glob_lan_ifaces="eth0...
Shell
# vim: set filetype=bash glob_6rd_net="2001:db8::/28" # 6RD prefix of your ISP. They provide it to you. glob_6rd_br="128.66.0.1" # 6RD Anycast BR of your ISP. glob_6rd_iface="6rdtun" # Name of the interface for the 6rd tunnel # Interfaces. They can be the same if this box is not routing ipv4. glob_lan_ifaces="eth0...
Shell
#!/bin/bash # vim: set filetype=bash tabstop=4 ### BEGIN INIT INFO # Provides: 6rd # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: 6RD Configuration Script # Description: Bring up/down 6RD interface ### END INIT INFO # /etc/init.d/6rd ...
Shell
#!/bin/bash # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
Shell
ant clean; ant release; adb install -r bin/MetaTracker-release.apk
Shell
#!/bin/sh -e # Works only in the hg repo incarnation of the source tree. # Mercurial, docutils, setuptools needs to be installed. setupdotpy_version=`python setup.py -V` # Finding out Mercurial cset until which we want to log hgid=`hg id | awk '{print $1}'` if echo $hgid | grep -q '+$'; then echo "you have outst...
Shell
#!/bin/sh -e # Works only in the hg repo incarnation of the source tree. # Mercurial, docutils, setuptools needs to be installed. setupdotpy_version=`python setup.py -V` # Finding out Mercurial cset until which we want to log hgid=`hg id | awk '{print $1}'` if echo $hgid | grep -q '+$'; then echo "you have outst...
Shell
fusermount -u /tmp/fuse rm /tmp/permfs_debug.out rm -rf /tmp/.fuse psql -h localhost -d fuse -U fuse -c "drop table perms;" python permfs.py /tmp/fuse
Shell
#!/bin/bash # # Simple launcher for Unix-style systems # # Author: Olivier Bilodeau <olivier@bottomlesspit.org> # Copyright (C) 2011 Groupe Proserus inc. # Licensed under the GPLv3 # OSX_VERSION=`sw_vers -productVersion 2>&1` # Mac OS X 10.5.2+ have java 6 but it's not installed in PATH if [[ "$OSX_VERSION" =~ ^10\.5...
Shell
rm -r PSP mkdir PSP cd PSP mkdir GAME cd GAME mkdir TN_HEN cd .. cd .. cd satelite make clean make all bin2c satelite.prx satelite_bin.inc satelite_bin cp satelite_bin.inc .. cd .. mv satelite_bin.inc rebootex/systemctrl/ cd rebootex/systemctrl/ make clean make all cd .. make clean make all cd .. make clean make all mv...
Shell
#!/bin/sh # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
Shell
ant clean ant build ant -Ddatabase.name="postgresql-8" create-schema cp ./build/jre-1.6/src/sql/openjpa-schema.xml src/sql/ ant -Ddatabase.name="postgresql-8" create-sql
Shell
#!/bin/bash ME=`whoami` IPCS_S=`ipcs -s | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_M=`ipcs -m | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_Q=`ipcs -q | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` for id in $IPCS_M; do ipcrm -m $id; done for id in $IPCS_S; do ipcrm...
Shell
#!/bin/bash make cd out echo -n "Terminator..." ./terminator echo "Done." echo -n "Launcher..." ./launcher echo "Done."
Shell
#!/bin/bash make cd out echo -n "Terminator..." ./terminator echo "Done." echo -n "Launcher..." ./launcher echo "Done."
Shell
#!/bin/bash ME=`whoami` IPCS_S=`ipcs -s | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_M=`ipcs -m | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_Q=`ipcs -q | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` for id in $IPCS_M; do ipcrm -m $id; done for id in $IPCS_S; do ipcrm...
Shell
#!/bin/bash #MEMORIAS COMPARTIDAS echo "Memorias eliminadas:" IPCSMEM=$(ipcs -m |tr -s " ") SEP=" " IFS=" " for i in $IPCSMEM; do IPCSMEM_KEY=$(echo "$i" | cut -d "${SEP}" -f 2) IPCSMEM_USER=$(echo "$i" | cut -d "${SEP}" -f 3) #usuario IPCSMEM_PRIV=$(echo "$i" | cut -d "${SEP}" -f 4) #privilegios IPCSMEM_PRO=$(e...
Shell
#!/bin/bash #MEMORIAS COMPARTIDAS echo "Memorias eliminadas:" IPCSMEM=$(ipcs -m |tr -s " ") SEP=" " IFS=" " for i in $IPCSMEM; do IPCSMEM_KEY=$(echo "$i" | cut -d "${SEP}" -f 2) IPCSMEM_USER=$(echo "$i" | cut -d "${SEP}" -f 3) #usuario IPCSMEM_PRIV=$(echo "$i" | cut -d "${SEP}" -f 4) #privilegios IPCSMEM_PRO=$(e...
Shell
#!/bin/bash cd out/rpcserver sudo ./terminator_rpcserver cd .. cd .. cd out/broker ./terminator_broker cd .. cd ..
Shell
#!/bin/bash ME=`whoami` IPCS_S=`ipcs -s | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_M=`ipcs -m | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_Q=`ipcs -q | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` for id in $IPCS_M; do ipcrm -m $id; done for id in $IPCS_S; do ipcrm...
Shell
#!/bin/bash echo "//****Ejecutando launcher de $1****\\\\" cd ../out/host # hosts ./launcher_host cd ../../ #tp ./create_config.sh $2 for line in $(cat "./launcher_config/$1.conf"); do echo "-ejecutando $line" case $line in "ADP") #lanzar los ipcs necesarios para el adp ./out/launcher_adp lanzar="....
Shell
#!/bin/bash A=$(echo "$1" | sed -e 's/=/ /g') echo "Ejecutando $A" $A echo "Toque Enter para salir" read var1
Shell
#!/bin/bash A=$(echo "$1" | sed -e 's/=/ /g') echo "Ejecutando $A" $A echo "Toque Enter para salir" read var1
Shell
#!/bin/bash echo "//****Ejecutando launcher de $1****\\\\" cd ../out/host # hosts ./launcher_host cd ../../ #tp ./create_config.sh $2 for line in $(cat "./launcher_config/$1.conf"); do echo "-ejecutando $line" case $line in "ADP") #lanzar los ipcs necesarios para el adp ./out/launcher_adp lanzar="....
Shell
#!/bin/bash make cd out echo -n "Terminator..." ./terminator echo "Done." echo -n "Launcher..." ./launcher echo "Done."
Shell
#!/bin/bash ./out/terminator_adpt ./out/terminator_cliente ./out/terminator_vendedor ./out/terminator_adp ./out/terminator_agv ./out/terminator_robot5 ./out/terminator_robot11 ./out/terminator_robot11a ./out/terminator_robot11b ./out/terminator_robot12
Shell
#!/bin/bash cp out/host/config.ini out/host/config.ini.old echo "rpcserver=$1" > out/host/config.ini echo "defaultbroker=$1" >> out/host/config.ini echo "puertoEntrada=20002" >> out/host/config.ini echo "puertoSalida=20003" >> out/host/config.ini echo "puertoForward=20004" >> out/host/config.ini echo "brokerId=1" >> ...
Shell
#!/bin/bash make cd out echo -n "Terminator..." ./terminator echo "Done." echo -n "Launcher..." ./launcher echo "Done."
Shell
#!/bin/bash ME=`whoami` IPCS_S=`ipcs -s | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_M=`ipcs -m | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_Q=`ipcs -q | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` for id in $IPCS_M; do ipcrm -m $id; done for id in $IPCS_S; do ipcrm...
Shell
#!/bin/bash cd out/rpcserver sudo ./terminator_rpcserver cd .. cd .. cd out/broker ./terminator_broker cd .. cd ..
Shell
#!/bin/bash #./out/launcher_general_brokers #sudo ./out/agent_address_server & #sudo ./out/routing_server & if [ $# -ne 1 ]; then echo "Cantidad de parametros invalida" exit 1 fi ./out/channel_launcher_broker $1 #echo "Lance el otro broker y aprete una tecla para continuar" #read #./out/interbroker_channel_launc...
Shell
#!/bin/bash ./out/terminator_adpt ./out/terminator_cliente ./out/terminator_vendedor ./out/terminator_adp ./out/terminator_agv ./out/terminator_robot5 ./out/terminator_robot11 ./out/terminator_robot11a ./out/terminator_robot11b ./out/terminator_robot12
Shell
#!/bin/bash sudo ./out/terminator_vendedores_libres_service ./out/terminator_general_brokers sudo killall agent_address_server sudo killall routing_server
Shell
#!/bin/bash if [ $# -ne 1 ]; then echo "Cantidad de parametros invalida" exit 1 fi killall -v channel_in_broker killall -v channel_out_broker killall -v servidor_in_broker killall -v servidor_out_broker ./out/channel_terminator_broker $1
Shell
#!/bin/bash #Lanzando brokers echo "Generandon Boludeces" KEY=1 while [ $KEY -lt 111 ]; do echo "$KEY=0"| tee -a altoNumero KEY=$(expr $KEY + 1) done AUX=1 while [ $KEY -lt 261 ]; do echo "$KEY=$AUX"| tee -a altoNumero KEY=$(expr $KEY + 1) AUX=$(expr $AUX + 1) if [ $AUX = 6 ];then AUX=1 fi done
Shell
#!/bin/bash ./out/launcher_adpt ./out/launcher_cliente ./out/launcher_vendedor ./out/launcher_adp ./out/launcher_agv ./out/launcher_robot5 ./out/launcher_robot11 ./out/launcher_robot11a ./out/launcher_robot11b ./out/launcher_robot12
Shell
#!/bin/bash #Lanzando brokers echo "Lanzando configurador" ######preguntar por por el rpc server #si....levantar server #no....pedir direccion RPC="zzzz" while [ $RPC != 's' ] && [ $RPC != 'n' ]; do echo "Desea correr el servidor RPC (s/n)" read RPC done RPC_IP="127.0.0.1" if [ $RPC = 's' ];then #lanzarRPC cd...
Shell
#!/bin/bash sudo ./out/launcher_general_brokers sudo ./out/agent_address_server & sudo ./out/routing_server & sleep 0.05 ./out/launcher_vendedores_libres_service ./out/vendedores_libres_service
Shell
#!/bin/bash cp out/host/config.ini out/host/config.ini.old echo "rpcserver=$1" > out/host/config.ini echo "defaultbroker=$1" >> out/host/config.ini echo "puertoEntrada=20002" >> out/host/config.ini echo "puertoSalida=20003" >> out/host/config.ini echo "puertoForward=20004" >> out/host/config.ini echo "brokerId=1" >> ...
Shell
#!/bin/bash #MEMORIAS COMPARTIDAS echo "Memorias eliminadas:" IPCSMEM=$(ipcs -m |tr -s " ") SEP=" " IFS=" " for i in $IPCSMEM; do IPCSMEM_KEY=$(echo "$i" | cut -d "${SEP}" -f 2) IPCSMEM_USER=$(echo "$i" | cut -d "${SEP}" -f 3) #usuario IPCSMEM_PRIV=$(echo "$i" | cut -d "${SEP}" -f 4) #privilegios IPCSMEM_PRO=$(e...
Shell
#!/bin/bash ./out/launcher_adpt ./out/launcher_cliente ./out/launcher_vendedor ./out/launcher_adp ./out/launcher_agv ./out/launcher_robot5 ./out/launcher_robot11 ./out/launcher_robot11a ./out/launcher_robot11b ./out/launcher_robot12
Shell
#!/bin/bash #Lanzando brokers echo "Generandon Boludeces" KEY=1 while [ $KEY -lt 111 ]; do echo "$KEY=0"| tee -a altoNumero KEY=$(expr $KEY + 1) done AUX=1 while [ $KEY -lt 261 ]; do echo "$KEY=$AUX"| tee -a altoNumero KEY=$(expr $KEY + 1) AUX=$(expr $AUX + 1) if [ $AUX = 6 ];then AUX=1 fi done
Shell
#!/bin/bash #./out/launcher_general_brokers #sudo ./out/agent_address_server & #sudo ./out/routing_server & if [ $# -ne 1 ]; then echo "Cantidad de parametros invalida" exit 1 fi ./out/channel_launcher_broker $1 #echo "Lance el otro broker y aprete una tecla para continuar" #read #./out/interbroker_channel_launc...
Shell
#!/bin/bash if [ $# -ne 1 ]; then echo "Cantidad de parametros invalida" exit 1 fi killall -v channel_in_broker killall -v channel_out_broker killall -v servidor_in_broker killall -v servidor_out_broker ./out/channel_terminator_broker $1
Shell
#!/bin/bash sudo ./out/launcher_general_brokers sudo ./out/agent_address_server & sudo ./out/routing_server & sleep 0.05 ./out/launcher_vendedores_libres_service ./out/vendedores_libres_service
Shell
#!/bin/bash sudo ./out/terminator_vendedores_libres_service ./out/terminator_general_brokers sudo killall agent_address_server sudo killall routing_server
Shell
#!/bin/bash #Lanzando brokers echo "Lanzando configurador" ######preguntar por por el rpc server #si....levantar server #no....pedir direccion RPC="zzzz" while [ $RPC != 's' ] && [ $RPC != 'n' ]; do echo "Desea correr el servidor RPC (s/n)" read RPC done RPC_IP="127.0.0.1" if [ $RPC = 's' ];then #lanzarRPC cd...
Shell
#!/bin/bash #MEMORIAS COMPARTIDAS echo "Memorias eliminadas:" IPCSMEM=$(ipcs -m |tr -s " ") SEP=" " IFS=" " for i in $IPCSMEM; do IPCSMEM_KEY=$(echo "$i" | cut -d "${SEP}" -f 2) IPCSMEM_USER=$(echo "$i" | cut -d "${SEP}" -f 3) #usuario IPCSMEM_PRIV=$(echo "$i" | cut -d "${SEP}" -f 4) #privilegios IPCSMEM_PRO=$(e...
Shell
#!/bin/bash make clean rm -rf CMakeCache.txt CMakeFiles cmake_install.cmake Makefile
Shell
#!/bin/bash make clean rm -rf CMakeCache.txt CMakeFiles cmake_install.cmake Makefile
Shell
#!/bin/bash #MEMORIAS COMPARTIDAS echo "Memorias eliminadas:" IPCSMEM=$(ipcs -m |tr -s " ") SEP=" " IFS=" " for i in $IPCSMEM; do IPCSMEM_KEY=$(echo "$i" | cut -d "${SEP}" -f 2) IPCSMEM_USER=$(echo "$i" | cut -d "${SEP}" -f 3) #usuario IPCSMEM_PRIV=$(echo "$i" | cut -d "${SEP}" -f 4) #privilegios IPCSMEM_PRO=$(e...
Shell
#!/bin/bash #MEMORIAS COMPARTIDAS echo "Memorias eliminadas:" IPCSMEM=$(ipcs -m |tr -s " ") SEP=" " IFS=" " for i in $IPCSMEM; do IPCSMEM_KEY=$(echo "$i" | cut -d "${SEP}" -f 2) IPCSMEM_USER=$(echo "$i" | cut -d "${SEP}" -f 3) #usuario IPCSMEM_PRIV=$(echo "$i" | cut -d "${SEP}" -f 4) #privilegios IPCSMEM_PRO=$(e...
Shell
#!/bin/bash ME=`whoami` #ME="root" IPCS_S=`ipcs -s | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_M=`ipcs -m | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_Q=`ipcs -q | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` for id in $IPCS_M; do ipcrm -m $id; done for id in $IPCS_S;...
Shell
#!/bin/bash echo "//****Ejecutando destroy de $1****\\\\" for line in $(cat "$1.conf"); do echo "-ejecutando $line" case $line in "ADP") lanzar="../out/terminator_adp" break;; "ADPT") lanzar="../out/terminator_adpt" break;; "AGV") lanzar="../out/terminator_agv" break;; "DESPACHO") ...
Shell
#!/bin/bash echo "Ejecutando $1" $1 echo "Toque Enter para salir" read var1
Shell
#!/bin/bash echo "//****Ejecutando launcher de $1****\\\\" for line in $(cat "$1.conf"); do echo "-ejecutando $line" case $line in "ADP") lanzar="../out/launcher_adp; ../out/adp" break;; "ADPT") lanzar="../out/launcher_adpt; ../out/adpt" break;; "AGV") lanzar="../out/launcher_agv; ../out/ag...
Shell
#!/bin/bash echo "Ejecutando $1" $1 echo "Toque Enter para salir" read var1
Shell
#!/bin/bash echo "//****Ejecutando destroy de $1****\\\\" for line in $(cat "$1.conf"); do echo "-ejecutando $line" case $line in "ADP") lanzar="../out/terminator_adp" break;; "ADPT") lanzar="../out/terminator_adpt" break;; "AGV") lanzar="../out/terminator_agv" break;; "DESPACHO") ...
Shell
#!/bin/bash echo "//****Ejecutando launcher de $1****\\\\" for line in $(cat "$1.conf"); do echo "-ejecutando $line" case $line in "ADP") lanzar="../out/launcher_adp; ../out/adp" break;; "ADPT") lanzar="../out/launcher_adpt; ../out/adpt" break;; "AGV") lanzar="../out/launcher_agv; ../out/ag...
Shell
#!/bin/bash make cd out echo -n "Terminator..." ./terminator echo "Done." echo -n "Launcher..." ./launcher echo "Done."
Shell
#!/bin/bash ./out/terminator_adp ./out/terminator_agv ./out/terminator_robot5 ./out/terminator_robot11 ./out/terminator_robot12
Shell
#!/bin/bash make cd out echo -n "Terminator..." ./terminator echo "Done." echo -n "Launcher..." ./launcher echo "Done."
Shell
#!/bin/bash ME=`whoami` #ME="root" IPCS_S=`ipcs -s | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_M=`ipcs -m | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` IPCS_Q=`ipcs -q | egrep "0x[0-9a-f]+ [0-9]+" | grep $ME | cut -f2 -d" "` for id in $IPCS_M; do ipcrm -m $id; done for id in $IPCS_S;...
Shell
#!/bin/bash ./out/launcher_general_brokers sudo ./out/agent_address_server & sudo ./out/routing_server & ./out/channel_launcher_broker broker1 ./out/channel_launcher_broker broker2 sleep 0.05 ./out/interbroker_channel_launcher broker1 ./out/interbroker_channel_launcher broker2
Shell
#!/bin/bash ./out/terminator_adp ./out/terminator_agv ./out/terminator_robot5 ./out/terminator_robot11 ./out/terminator_robot12
Shell
#!/bin/bash killall -v servidor_in_broker killall -v servidor_out_broker ./out/channel_terminator_broker broker1 ./out/channel_terminator_broker broker2 ./out/terminator_general_brokers sudo killall agent_address_server sudo killall routing_server
Shell
#!/bin/bash ./out/launcher_adp ./out/launcher_agv ./out/launcher_robot5 ./out/launcher_robot11 ./out/launcher_robot12
Shell
#!/bin/bash #MEMORIAS COMPARTIDAS echo "Memorias eliminadas:" IPCSMEM=$(ipcs -m |tr -s " ") SEP=" " IFS=" " for i in $IPCSMEM; do IPCSMEM_KEY=$(echo "$i" | cut -d "${SEP}" -f 2) IPCSMEM_USER=$(echo "$i" | cut -d "${SEP}" -f 3) #usuario IPCSMEM_PRIV=$(echo "$i" | cut -d "${SEP}" -f 4) #privilegios IPCSMEM_PRO=$(e...
Shell
#!/bin/bash ./out/launcher_adp ./out/launcher_agv ./out/launcher_robot5 ./out/launcher_robot11 ./out/launcher_robot12
Shell
#!/bin/bash ./out/launcher_general_brokers sudo ./out/agent_address_server & sudo ./out/routing_server & ./out/channel_launcher_broker broker1 ./out/channel_launcher_broker broker2 sleep 0.05 ./out/interbroker_channel_launcher broker1 ./out/interbroker_channel_launcher broker2
Shell
#!/bin/bash killall -v servidor_in_broker killall -v servidor_out_broker ./out/channel_terminator_broker broker1 ./out/channel_terminator_broker broker2 ./out/terminator_general_brokers sudo killall agent_address_server sudo killall routing_server
Shell
#!/bin/bash #MEMORIAS COMPARTIDAS echo "Memorias eliminadas:" IPCSMEM=$(ipcs -m |tr -s " ") SEP=" " IFS=" " for i in $IPCSMEM; do IPCSMEM_KEY=$(echo "$i" | cut -d "${SEP}" -f 2) IPCSMEM_USER=$(echo "$i" | cut -d "${SEP}" -f 3) #usuario IPCSMEM_PRIV=$(echo "$i" | cut -d "${SEP}" -f 4) #privilegios IPCSMEM_PRO=$(e...
Shell
#!/bin/bash # Primero limpio todos los IPCs if [ $# -ne 1 ] ; then echo "Error: Debe ingresar el nombre del proceso a asesinar" exit 1 fi echo "Limpiando mecanismos de IPC" ipcrm -M 0x04062014 ipcrm -S 0x01062014 ipcrm -S 0x02062014 ipcrm -S 0x03062014 # Luego elimino a los procesos "Puerta" list=`ps -e | grep " ...
Shell
#!/bin/bash # Primero limpio todos los IPCs if [ $# -ne 1 ] ; then echo "Error: Debe ingresar el nombre del proceso a asesinar" exit 1 fi echo "Limpiando mecanismos de IPC" ipcrm -M 0x04062014 ipcrm -S 0x01062014 ipcrm -S 0x02062014 ipcrm -S 0x03062014 # Luego elimino a los procesos "Puerta" list=`ps -e | grep " ...
Shell
#!/bin/bash # Primero limpio todos los IPCs if [ $# -ne 1 ] ; then echo "Error: Debe ingresar el nombre del proceso a asesinar" exit 1 fi echo "Limpiando mecanismos de IPC" #ipcrm -M 0x04062014 #ipcrm -S 0x01062014 #ipcrm -S 0x02062014 #ipcrm -S 0x03062014 # Luego elimino a los procesos "Puerta" list=`ps -e | gre...
Shell
#!/bin/bash # Primero limpio todos los IPCs if [ $# -ne 1 ] ; then echo "Error: Debe ingresar el nombre del proceso a asesinar" exit 1 fi echo "Limpiando mecanismos de IPC" #ipcrm -M 0x04062014 #ipcrm -S 0x01062014 #ipcrm -S 0x02062014 #ipcrm -S 0x03062014 # Luego elimino a los procesos "Puerta" list=`ps -e | gre...
Shell
#!/bin/bash #Vaciado de tabla de ruteo. `ip route flush all` interfaces=`ifconfig | egrep "eth" | sed 's/^\([A-Za-z0-9:]*\).*/\1/'` for interfaz in $interfaces do `ip addr flush $interfaz` done
Shell
#!/bin/bash # IP DNS ROOT IP_A="192.168.15.101" BROADCAST_A="192.168.15.255" MASCARA_A="255.255.255.0" # IP DNS B IP_B="10.55.7.100" BROADCAST_B="10.55.7.127" MASCARA_B="255.255.255.128" # IP DNS C IP_C="10.4.203.200" BROADCAST_C="10.4.203.223" MASCARA_C="255.255.255.224" # DIRECCIONES DE RED atom="10.4.203.64" ben...
Shell
#!/bin/bash # DIRECCION IP SERVIDOR WEB IP_WEB="192.168.15.1" BROADCAST_WEB="192.168.15.255" MASCARA_WEB="255.255.255.0" # DIRECCIONES IP SERVIDOR TELNET IP_TELNET1="10.31.101.130" BROADCAST_TELNET1="10.31.101.255" MASCARA_TELNET1="255.255.255.0" IP_TELNET2="10.4.203.129" BROADCAST_TELNET2="10.4.203.159" MASCARA_TELN...
Shell
#!/bin/bash # IP DNS ROOT IP_A="192.168.15.101" BROADCAST_A="192.168.15.255" MASCARA_A="255.255.255.0" # IP DNS B IP_B="10.55.7.100" BROADCAST_B="10.55.7.127" MASCARA_B="255.255.255.128" # IP DNS C IP_C="10.4.203.200" BROADCAST_C="10.4.203.223" MASCARA_C="255.255.255.224" # DIRECCIONES DE RED atom="10.4.203.64" ben...
Shell
#!/bin/bash # IP HOST A IP_A="10.55.6.50" BROADCAST_A="10.55.6.255" MASCARA_A="255.255.255.0" # IP HOST B IP_B="10.55.7.101" BROADCAST_B="10.55.7.127" MASCARA_B="255.255.255.128" # IP HOST C IP_C="10.4.203.210" BROADCAST_C="10.4.203.223" MASCARA_C="255.255.255.224" # DIRECCIONES DE RED atom="10.4.203.64" benji="10....
Shell
#!/bin/bash #Vaciado de tabla de ruteo. `ip route flush all` interfaces=`ifconfig | egrep "eth" | sed 's/^\([A-Za-z0-9:]*\).*/\1/'` for interfaz in $interfaces do `ip addr flush $interfaz` done
Shell
#!/bin/bash # IP HOST A IP_A="10.55.6.50" BROADCAST_A="10.55.6.255" MASCARA_A="255.255.255.0" # IP HOST B IP_B="10.55.7.101" BROADCAST_B="10.55.7.127" MASCARA_B="255.255.255.128" # IP HOST C IP_C="10.4.203.210" BROADCAST_C="10.4.203.223" MASCARA_C="255.255.255.224" # DIRECCIONES DE RED atom="10.4.203.64" benji="10....
Shell
#!/bin/bash # DIRECCION IP SERVIDOR WEB IP_WEB="192.168.15.1" BROADCAST_WEB="192.168.15.255" MASCARA_WEB="255.255.255.0" # DIRECCIONES IP SERVIDOR TELNET IP_TELNET1="10.31.101.130" BROADCAST_TELNET1="10.31.101.255" MASCARA_TELNET1="255.255.255.0" IP_TELNET2="10.4.203.129" BROADCAST_TELNET2="10.4.203.159" MASCARA_TELN...
Shell
#!/bin/bash namedConf=/etc/bind/named.conf resolvConf=/etc/resolv.conf bind=/etc/init.d/bind9 bindPath=/etc/bind function desinstalarServer { echo "Limpiando archivos directorio ${bindPath}..." rm -rf "${bindPath}"/* echo "Deteniendo bind9..." pkill named service bind9 stop #bash ${bind} sto...
Shell
#!/bin/bash namedConf=/etc/bind/named.conf resolvConf=/etc/resolv.conf bind=/etc/init.d/bind9 bindPath=/etc/bind function desinstalarServer { echo "Limpiando archivos directorio ${bindPath}..." rm -rf "${bindPath}"/* echo "Deteniendo bind9..." pkill named service bind9 stop #bash ${bind} sto...
Shell
echo hello world | cat cat lorem >out cat out cat lorem |num cat lorem |num |num |num |num |num lsfd -1 cat script sh <script
Shell
#!/bin/bash Res=res/ Alt=donottranslate-altchars.xml Map=donottranslate-keymap.xml Out=assets/kbd/ mkdir -p "$Out" for Dir in res/values res/values-* do [ -f $Dir/$Map ] || continue # -o -f $Dir/$Alt ] || continue Args="$Res/values/$Alt" [ -f $Dir/$Alt ] && Args="$Args $Dir/$Alt" Args="$Args $Res/values/$Map...
Shell
#!/bin/bash getLangsForFiles () { echo "en" # default language for F in "$@" do find res/ -name "$F" done \ | sed -n ' s/.*res.[a-z]*-\(..\)-r\(..\).*/\1_\2/p; # yy-rXX => yy_XX s/.*res.[a-z]*-\(..\)\/.*/\1/p; # yy => yy ' } getLangsForDicts () { ls ../Dicts \ | sed 's/.*-//;...
Shell
#!/bin/sh DIR="$( cd "$( dirname "$0" )" && pwd )" javac -target 1.5 -source 1.5 $DIR/testlibs/*.java if [ -n "$JYTHON_HOME" ] then javac -cp $JYTHON_HOME/jython.jar -target 1.5 -source 1.5 $DIR/listeners/*.java else echo set JYTHON_HOME to compile listeners fi
Shell
#!/bin/sh testdir=`dirname $0` rm -f $testdir/output.* export PYTHONPATH=$testdir/../../../src python -m robot.run -l none -r none -d $testdir $testdir/test.txt python $testdir/../times2csv.py $testdir/output.xml echo "------------------------------ results ------------------------------" cat $testdir/output.csv echo "...
Shell
#!/bin/bash testdir=`dirname $0` pybot --loglevel DEBUG --log none --report none --outputdir $testdir $testdir/example.txt python $testdir/../statuschecker.py $testdir/output.xml rebot $testdir/output.xml echo "$? tests failed, 5 should have failed." echo "Check that tests starting with 'FAILURE:' have failed and other...
Shell