beagle r4880 - trunk/beagle/tools



Author: dbera
Date: Sat Nov 22 19:29:36 2008
New Revision: 4880
URL: http://svn.gnome.org/viewvc/beagle?rev=4880&view=rev

Log:
Use a custom while loop instead of the 'watch' command in beagle-status. Fixes #556002. Apparently, in FreeBSD Linux's watch(1) does not exists, and FreeBSD has a watch(8) command to "snoop on another tty line".



Modified:
   trunk/beagle/tools/beagle-status

Modified: trunk/beagle/tools/beagle-status
==============================================================================
--- trunk/beagle/tools/beagle-status	(original)
+++ trunk/beagle/tools/beagle-status	Sat Nov 22 19:29:36 2008
@@ -9,4 +9,11 @@
     CMD="beagle-info"
 fi
 
-watch -n 5 $CMD --status
+while true; do
+    clear
+    echo -n "beagle-status at "
+    date
+    $CMD --status
+    sleep 5
+done
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]