*****************************************************
I've solved this problem.
1.) linux emulator must be installed.
to check if already installed:
Code: Select all
# kldstat |grep linux
2.) add the following to /etc/fstab
Code: Select all
linproc /compat/linux/proc linprocfs rw 0 0
3.) change linux_memory.pl script to:
Code: Select all
#!/usr/bin/perl
$mem = `cat /compat/linux/proc/meminfo | grep -w "$ARGV[0]"`;
$mem =~ s/($ARGV[0].*\s)(.*[0-9])( kB)//;
print $2;
and now it works perfectly !
greetings
cccc
*********************************************************