Bonjour;
j'ai un script shell qui me retourne le pourcentage de la memoire
utilisé.mon probleme c'est que dans un script php comment
recuperer ce pourcentage et l'inserer dans une table html.
mon script:
#!/bin/sh
FREE="/usr/bin/free"
GREP="/bin/grep"
AWK="/bin/awk"
ECHO="/bin/echo"
line=`$FREE | $GREP "^Mem"`
total=`$ECHO $line | $AWK '{print $2}'`
used=`$ECHO $line | $AWK '{print $3}'`
let used=$used*100
let pourcentage_free=$used/$total
echo $pourcentage_free
sinon y a t'il une possibilité de faire ça avec php sans passer par le shell?
merci.