#!/bin/sh
DIR="$( cd "$( dirname "$0" )" && pwd )"
shname=$basename$0
APP="${shname%.*}"
echo $DIR
echo $APP
export LD_LIBRARY_PATH=$DIR
$APP
后臺(tái)運(yùn)行岂却,最后一句改為:
$APP > /dev/null &
#!/bin/sh
DIR="$( cd "$( dirname "$0" )" && pwd )"
shname=$basename$0
APP="${shname%.*}"
echo $DIR
echo $APP
export LD_LIBRARY_PATH=$DIR
$APP
后臺(tái)運(yùn)行岂却,最后一句改為:
$APP > /dev/null &