SF.net SVN: morphix: [2338] trunk/scripts-mini/View_Licenses_MorphixMini-KioskAddins.sh

[email protected] Tue, 04 Jul 2006 13:36:28 -0700
Newsgroups gmane.linux.morphix.cvs
Message-ID <[email protected]>
Revision: 2338
Author:   bmsleight
Date:     2006-07-04 13:36:19 -0700 (Tue, 04 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/morphix/?rev=2338&view=rev

Log Message:
-----------
Add View_Licenses_MorphixMini-KioskAddins.sh

Added Paths:
-----------
    trunk/scripts-mini/View_Licenses_MorphixMini-KioskAddins.sh
Added: trunk/scripts-mini/View_Licenses_MorphixMini-KioskAddins.sh
===================================================================
--- trunk/scripts-mini/View_Licenses_MorphixMini-KioskAddins.sh	                        (rev 0)
+++ trunk/scripts-mini/View_Licenses_MorphixMini-KioskAddins.sh	2006-07-04 20:36:19 UTC (rev 2338)
@@ -0,0 +1,42 @@
+#!/bin/bash
+SLEEPS=2
+DIS_LINES=20
+TMP_CAT_MESS=/tmp/cat_mess.txt
+TMP_CAT_FILES=/tmp/cat_all.txt
+
+TITLE1="Licenses - Page:"
+TITLE2="This minimodule runs with boot option nonfree=ok entered at the boot prompt" 
+TITLE3="By entering nonfree=ok this implies you have agreed to the above licenses "
+DIVIDER="##################################################################################"
+#      012345678901234567890012345678901234567890
+
+for CAT_FILES in $1/* 
+do
+  echo $DIVIDER 	  >>$TMP_CAT_FILES
+  echo "FILE: $CAT_FILES" >>$TMP_CAT_FILES
+  echo $DIVIDER  	  >>$TMP_CAT_FILES
+  cat  $CAT_FILES  	  >>$TMP_CAT_FILES 
+done
+
+LINES=$(wc -l $TMP_CAT_FILES | cut -d\  -f 1 )
+MAXP=$(expr $LINES / $DIS_LINES)
+PNUM=$(expr $MAXP + 1)
+MAXP=$(expr $MAXP + 2)
+#For non X-session
+PAGE=1
+while [ $PAGE -lt $MAXP ]
+do
+ CL=$(expr $PAGE \* $DIS_LINES)
+ clear
+ head $TMP_CAT_FILES -n $CL | tail -n $DIS_LINES >$TMP_CAT_MESS
+ echo $DIVIDER				 	 >>$TMP_CAT_MESS
+ echo $TITLE1 $PAGE " of " $PNUM 		 >>$TMP_CAT_MESS
+ echo $TITLE2 					 >>$TMP_CAT_MESS
+ echo $TITLE3				 	 >>$TMP_CAT_MESS
+ cat $TMP_CAT_MESS
+ PAGE=$(expr $PAGE + 1)
+ sleep $SLEEPS
+done
+
+rm $TMP_CAT_MESS
+rm $TMP_CAT_FILES
\ No newline at end of file


Property changes on: trunk/scripts-mini/View_Licenses_MorphixMini-KioskAddins.sh
___________________________________________________________________
Name: svn:executable
   + *


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642