|
|
|
Friday, 23 September 2011 05:40 |
//Kill tomcat by spec dir
#!/bin/sh
#kill tomcat pid
pidlist=`ps -ef|grep tomcat_foobar/conf | grep -v "grep"|awk '{print $2}'`
echo "tomcat Id list :$pidlist"
if [ "$pidlist" = "" ]
then
echo "no tomcat pid alive"
else
for pid in ${pidlist}
{
kill -9 $pid
echo "KILL $pid:"
echo "service stop success"
}
fi
 Read more: |
|
|
Sunday, 21 March 2010 18:58 |
var nombre = new LiveValidation('nombre');
nombre.add( Validate.Presence , { failureMessage: "No puede estar vacio"});
 Read more: |
|
Friday, 19 March 2010 09:47 |
// Mel - Dialog (2 button)
{
// create a confirm dialog with a yes and no button. Specif
$response = `confirmDialog -title "Confirm"
-message "Yes or No? It's your choice..."
-button "Yes"
-button "No"
-defaultButton "Yes"
-cancelButton "No"
-dismissString "No"`;
// check response
if( $response == "Yes" ) {
print("User says yes\n");
} else if( $response == "No" ) {
print("User says no\n");
}
}
 Read more: |
|
|
|
|
|
|