Forteca
13/06/07, 23:33
Hooi ik heb het volgenden probleem, ik heb ergens een gameserver maar om hem te restarten heb ik een sh script genomen maar ik krijgt de volgende fout:
: command not found2:
'hecksamp.sh: line 4: syntax error near unexpected token `in
'hecksamp.sh: line 4: `case $PROCESS_COUNT in
#!/bin/sh
PROCESS_COUNT=$(ps -fu root | grep samp01b | grep -v grep | wc -l)
case $PROCESS_COUNT in
0) /path/to/samp01b &
;;
1) #OK, program is already running once
;;
*) #OK, program is already multiple times
;;
esac
: command not found2:
'hecksamp.sh: line 4: syntax error near unexpected token `in
'hecksamp.sh: line 4: `case $PROCESS_COUNT in
#!/bin/sh
PROCESS_COUNT=$(ps -fu root | grep samp01b | grep -v grep | wc -l)
case $PROCESS_COUNT in
0) /path/to/samp01b &
;;
1) #OK, program is already running once
;;
*) #OK, program is already multiple times
;;
esac