Last active
August 29, 2015 14:05
-
-
Save xola139/cba3674a4e6825c7be2c to your computer and use it in GitHub Desktop.
Script para generar un shell desde linux , este esta probado para :-sh-4.1$ lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: RedHatEnterpriseServer Description: Red Hat Enterprise Linux Server release 6.1 (Santiago) Release: 6.1 Codename: San…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ksh | |
PATH=/usr/java/bin:$PATH | |
L=/var/Mylib | |
LOG=/tmp/logs | |
export PATH | |
CLASSPATH1=./NombreProyecto:./NombreProyecto/Myjar.jar:$L/log4j-1.2.16.jar:$L/gson-2.2.1.jar:$L/esper-4.6.0.jar:$L/commons-logging-1.1.3.jar:$L/cglib-nodep-2.2.jar:$L/banorte15.5.jar:$L/antlr- | |
runtime-3.2.jar | |
CLASSPATHSPRING=$L/springframework/commons-collections-1.0.jar:$L/springframework/commons-dbcp-1.2.jar:$L/springframework/commons-pool-1.6.jar:$L/springframework/org.springframework.asm-3.0.5.RELEASE.jar:$L/ | |
springframework/org.springframework.beans-3.0.5.RELEASE.jar:$L/springframework/org.springframework.context-3.0.5.RELEASE.jar:$L/springframework/org.springframework.context.support-3.0.5.RELEASE.jar:$L/spring | |
framework/org.springframework.core-3.0.5.RELEASE.jar:$L/springframework/org.springframework.expression-3.0.5.RELEASE.jar:$L/springframework/org.springframework.jdbc-3.0.5.RELEASE.jar:$L/springframework/org.s | |
pringframework.transaction-3.0.5.RELEASE.jar | |
CLASSPATHDB=$L/SQLOraclejdbc/ojdbc14.jar | |
export CLASSPATH=$CLASSPATH1:$CLASSPATHSPRING:$CLASSPATHDB | |
#15.23.34.56 es la ip remota donde se encuntra el aplicativo | |
PROP_JMX_REMOTE="-Djava.rmi.server.hostname=15.23.34.56 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremo | |
te.ssl=false" | |
java -Xincgc $PROP_JMX_REMOTE mx.kardumen.server.Servidor nombreProceso > $LOG/mySystem.txt & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment