Problem with script.
#1
Hi, i'm new in scripting, and i'm havving some troubles with "echo", becouse I only get the first of them, or at most, two of them. If I run it from telnet window, it works ok, echoing every message, and giving no error....
Can you help me, Please??
here's the code...

Code:
#!/bin/sh

#Evocam 2.17
URL=`/usr/bin/wget -q -O - ht*p://someURL`
status=$?
Ruta="ht*p://OtherWeb$URL"
/usr/bin/wget -q -O /usr/keys/Keylist.txt $Ruta
status=$?
if [ $status -eq 0 ] ; then
   echo -n "Keylist.txt Updated!!"
else
   echo -n "Keylist.txt not updated."
fi
#sleep 1

URL=`/usr/bin/wget -q -O - ht*p://someURL`
status=$?
Ruta="ht*p://OtherWsb$URL"
/usr/bin/wget -q -O /usr/keys/Autoupdate.Key $Ruta
status=$?
if [ $status -eq 0 ] ; then
   echo -n "Autoupdate.Key Updated !!"
else
   echo -n "Autoupdate.Key. not updated"
fi
#sleep 1

#CCCam
URL=`/usr/bin/wget -q -O - ht*p://someURL`
status=$?
Ruta="ht*p://OtherWeb$URL"
/usr/bin/wget -q -O /usr/keys/SoftCam.Key $Ruta
status=$?
if [ $status -eq 0 ] ; then
   echo -n "SoftCam.Key Updated!!"
else
   echo -n "SoftCam.Key. not updated"
fi
#sleep 1
echo -n "Restarting Cam..."
/var/script/CCcam_2.0.8_cam.sh stop
status=$?
/var/script/CCcam_2.0.8_cam.sh start
status=$?
echo -n "Cam Restarted!"
echo
echo "Process OK !"
echo
echo
exit 0
Reply

Logout Mark Read Team Forum Stats Members Help
Problem with script.0