Skip to content

Instantly share code, notes, and snippets.

@leodutra
Last active October 5, 2015 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leodutra/8c4b9b3fc87a32befd43 to your computer and use it in GitHub Desktop.
Save leodutra/8c4b9b3fc87a32befd43 to your computer and use it in GitHub Desktop.
Clean IBM WebSpherere 7 temp and log files
#!/bin/sh
WAS_7_PATH=/opt/IBM/WebSphere/AppServer70
MAIN_PROFILE=$WAS_7_PATH/profiles/AppSrv01/
rm -Rf $WAS_7_PATH/temp/*
rm -Rf $WAS_7_PATH/logs/*
rm -Rf $MAIN_PROFILE/temp/*
rm -Rf $MAIN_PROFILE/wstemp/*
rm -Rf $MAIN_PROFILE/config/temp/*
sh $MAIN_PROFILE/bin/clearClassCache.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment