Christian Heisch wrote:

> So my question: Is there a way to add some kind of delay to the calling 
> of the bash-script? A few seconds should be enough. Or is there a 
> possibility to add this delay into the bash-script?
> 
> ----------------------------------------------------------------------------------------------------
> echo "<mit_zeit>" >> /home/www/web6/html/stats/status.xml
> echo "<datum>" >> /home/www/web6/html/stats/status.xml
> date --date="today" "+%d.%m.%y" >> /home/www/web6/html/stats/status.xml
> echo "</datum><zeit>" >> /home/www/web6/html/stats/status.xml
> date --date="today" "+%H:%M:%S" >> /home/www/web6/html/stats/status.xml
> echo "</zeit>" >> /home/www/web6/html/stats/status.xml
> #
> # Statistik-Tool
> curl -u admin:secret http://welle303.de:8000/admin/stats.xml | grep -o 
> "<listeners>.*</listeners>" >> /home/www/web6/html/stats/status.xml
> curl -u admin:secret http://welle303.de:8000/admin/stats.xml | grep -o 
> "<title>.*</title>" >> /home/www/web6/html/stats/status.xml
> echo "</mit_zeit>" >> /home/www/web6/html/stats/status.xml
> #
> ----------------------------------------------------------------------------------------------------

sleep <seconds> could do the trick, providing the script runs asynchronous:

-----------8<--------------8<--------------------
sleep 5
echo "<mit_zeit>" >> /home/www/web6/html/stats/status.xml
[..]
-----------8<--------------8<--------------------



-- 
Frits Letteboer
Technisch Beheer
Stichting Radio Twenterand

I: http://radiotwenterand.nl
E: [email protected]

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to