머드 자동실행파일 제작했는데 작동이 안되서 그러는데 잘 했나 봐주세요

#!/bin/sh

while [ 1 ]; do

#        PS1=`/bin/ps ax|/bin/grep -v grep|/bin/grep -c "mudgame0 7101"`

#       if [ $PS1 -eq 0 ]; then

#          ulimit -c 1000000

#          cd /home/love/mud0/bin

#          mv core "C`date +%H%M`"

#          ./mudgame0 7101

  #      fi

   #     sleep 3

        PS2=`/bin/ps ax|/bin/grep -v grep|/bin/grep -c "mudgame 7101"`

        if [ $PS2 -eq 0 ]; then

           ulimit -c 1000000

           cd /home/shcc/mud3/bin

           ./mudgame 7788

        fi

        sleep 120

done

저는 이렇게 했는데 작동이 되질 않습니다 틀리게 했나요?
목록

댓글 0

아직 댓글이 없습니다.

옛글 보관소는 읽기만 됩니다.