saya mencontoh sebuah script u/ sms. tapi setelah di chmod 755 dan
dijalankan, muncul error:  syntax error: unexpected end of file.
apa yg perlu saya tambahakan dalam script tsb sbg pertanda EOF?

lampiran script:

#!/bin/bash
hosttoping=$1
if [ -z "$1" ]; then
echo "usage: $myname hostname"
exit 1
fi
ping -c3 $hosttoping > /dev/null 2>&1
if test "$?" = "0" ; then
echo up
else
echo down




-- 
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis.php

Kirim email ke