[Gambas-user] Need help / call for volunteers

Alonso Cardenas Marquez acardenas at ...2158...
Tue Aug 25 19:27:07 CEST 2009


2009/8/25 Jussi Lahtinen <jussi.lahtinen at ...626...>:
> [OperatingSystem]
> OperatingSystem=Linux
> KernelRelease=2.6.28-15-generic
> DistributionVendor=ubuntu
> DistributionRelease="Ubuntu 9.04"
>
> [System]
> CPUArchitecture=x86_64
> TotalRam=3993220 kB
>
> [Gambas]
> Gambas1=Not Installed
> Gambas2=2.10.2
> Gambas2Path=/usr/local/bin/gbx2
> Gambas3=2.99.0
> Gambas3Path=/usr/local/bin/gbx3
>
>  Everything correct!
>
>
> Jussi


Works on FreeBSD too

OperatingSystem=FreeBSD
KernelRelease=7.2-RELEASE
DistributionVendor=generic-undetected
DistributionRelease=

[System]
CPUArchitecture=i386
TotalRam=

[Gambas]
Gambas1=Not Installed
Gambas2=2.15.2
Gambas2Path=/usr/local/bin/gbx2
Gambas3=Not Installed

Maybe we could use for detect available ram (Kb) on FreeBSD the
following command

if [ "$OS" = "FreeBSD" ]; then
RAM=$(echo `sysctl -n hw.physmem` / 1024 | bc -l | cut -d . -f1)" Kb"
else
RAM="`cat /proc/meminfo | grep MemTotal | awk -F: '{print $2}' | sed
-e 's/^[ \t]*//'`"
fi

Greetings
ACM




More information about the User mailing list