"Fossies" - the Fresh Open Source Software Archive

Member "systeminfo/report/ulimit.sh" (4 Feb 2005, 373 Bytes) of package /linux/privat/old/systeminfov12.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 # User Limitation Information Generator
    3 
    4 while read line; do
    5 echo $line | grep -q '<span style="font-weight:">'
    6 if [[ $? -eq 0 ]]
    7 then
    8     echo $line
    9     printf "\nSystem Resource limitation for <b>< $USER ></b>:\n<br><br>";
   10     ulimit -a|while read ln; do
   11     [[ ! -z $ln ]] && echo $ln"<br>"
   12     done
   13 else
   14     echo $line
   15 fi
   16 done < ulimit.html >  $1/ulimit.html