tar zcvf 20090918.tar.gz ./xxxx
tar zxvf 20090918.tar.gz
#!/bin/sh
delete_dir=/home/tkapplications/MarketDataAdapter/V1_0/PRISMDataCheck/flag_files
find $delete_dir -maxdepth 1 -mtime +7 -name "*.*" -exec /bin/rm -f {} \; > /dev/null
cd `dirname $0`/..
ROOT_DIR=`pwd`
cd `dirname $0`
#!/usr/bin/ksh
# @(#)$Id: stop apache server
# Kills the apache serverd: stopServer
# ps has different options under Linux
OS=`/bin/uname`
if [ "$OS" = "Linux" ] ; then
PS_CMD="/bin/ps -efww"
else
PS_CMD="/usr/ucb/ps -auxwww"
fi
# find processes apache httpd
jpid=`$PS_CMD | grep "httpd" | grep -v grep | awk '{print $2}'`
if [ -z "$jpid" ] ; then
echo "Can't find apache runServer"
exit
fi
echo "sleep 10 second"
sleep 10
echo "Killing $jpid"
kill -9 $jpid
exit 0
tar zxvf 20090918.tar.gz
#!/bin/sh
delete_dir=/home/tkapplications/MarketDataAdapter/V1_0/PRISMDataCheck/flag_files
find $delete_dir -maxdepth 1 -mtime +7 -name "*.*" -exec /bin/rm -f {} \; > /dev/null
cd `dirname $0`/..
ROOT_DIR=`pwd`
cd `dirname $0`
#!/usr/bin/ksh
# @(#)$Id: stop apache server
# Kills the apache serverd: stopServer
# ps has different options under Linux
OS=`/bin/uname`
if [ "$OS" = "Linux" ] ; then
PS_CMD="/bin/ps -efww"
else
PS_CMD="/usr/ucb/ps -auxwww"
fi
# find processes apache httpd
jpid=`$PS_CMD | grep "httpd" | grep -v grep | awk '{print $2}'`
if [ -z "$jpid" ] ; then
echo "Can't find apache runServer"
exit
fi
echo "sleep 10 second"
sleep 10
echo "Killing $jpid"
kill -9 $jpid
exit 0