Matthias Becker
Grünschnabel
Hallo zusammen!
Habe ein Skript welches mit folgendem Fehler stoppt:
./fcssd: line 18: syntax error: unexpected end of file
Die beiden IF-Bedingungen sind aber doch mit Semikolon abgeschlossen, bzw. mit 2 fi beendet?
Hat jemand eine Idee?
LG
Matthias
P.S.: Mein System:
Kernel version: 2.6.11.4-21.11-default
Apache version: Apache/2.0.53 (Linux/SUSE)
PHP Version 4.3.10
MySQL version: 4.1.10a
Habe ein Skript welches mit folgendem Fehler stoppt:
./fcssd: line 18: syntax error: unexpected end of file
Code:
#!/bin/sh
php_dir="/usr/bin"
fcss_dir="/var/www/vhosts/meinedomain.de/httpdocs/forum/chat/inc/patServer"
fcss_com="-A -m -d $php_dir/php -q ./runServer.php"
fcss_f=`ps auxw | grep "SCREEN $fcss_com" | grep -v grep | awk '{print $2}'`
if [ -z "$fcss_f" ]; then
echo "Flash Chat socket server is not running, starting it..."
cd "$fcss_dir"
screen $fcss_com &
fcss_f=`ps auxw | grep "SCREEN $fcss_com" | grep -v grep | awk '{print $2}'`
if [ -n "$fcss_f" ]; then
echo $fcss_f > fcssd.pid
echo "Socket server is running."
else
echo "Socket server could not be started."
fi
fi
Hat jemand eine Idee?
LG
Matthias
P.S.: Mein System:
Kernel version: 2.6.11.4-21.11-default
Apache version: Apache/2.0.53 (Linux/SUSE)
PHP Version 4.3.10
MySQL version: 4.1.10a