批量修改文件时间
#!/bin/bash
for ((i=1;i<650;i++))
do
echo $i
sleep 1
touch $i_*.mp3
done
一个守护脚本,避免程序挂掉
#!/bin/bash
while((0==0))
do
sn=`ps -ef | grep ./snowboy | grep -v grep |awk '{print $2}'`
#echo $sn
if [ "${sn}" = "" ] #如果为空,表示进程未启动
then
nohup ./snowboy &
echo start ok !
else
echo running
fi
sleep 5
done