#!/bin/sh
DIR="$( cd "$( dirname "$0" )" && pwd )"
shname=$basename$0
APP="${shname%.*}"
echo $DIR
echo $APP
export LD_LIBRARY_PATH=$DIR
$APP
后台运行,最后一句改为:
$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
后台运行,最后一句改为:
$APP > /dev/null &