更改可执行程序名称为当前目录名以执行程序

#!/bin/bash

make clean

make

cdir="$(basename $(PWD))"

rm ./${cdir}

echo "ln -s ./ses.exe ./${cdir}"

ln -s ./ses.exe ./${cdir}

echo "nohup ./${cdir} < input > sc 2>&1 &"

nohup ./${cdir} < input > sc 2>&1 &

 

posted @ 2016-11-03 14:20  H.*n  阅读(178)  评论(0编辑  收藏  举报