HI
I have problems with executing memtester from another program.
I'm using Public release version of memtester and I added it to a menu, so that one of the test is memory test and you just press the enter button and memtester starts. Mmemtester starts and outputs an error
Code:
pagesize is 4096
pagesizemask is 0xfffff000
bytes < pagesize -- memory argument too large?
When you manually start a program you have to type 2 arguments, first is for amount of memory to test and secon how many times to test, it looks like this:
./memtester 950 1
I wanted that memtester finds the max amount of free memory to test so for the second argument I typed:
`free -om | grep 'Mem:' | awk '{print $4}'`
so the starting of the program looks like:
./memtester `free -om | grep 'Mem:' | awk '{print $4}'`1
So this works ok without a problem.

I have a problem with starting this from a menu(another program).
It works fine if I type allready the amount of memory into the first argument(not that he finds the number himself), but if I enter: `free -om | grep 'Mem:' | awk '{print $4}'`
into the first argument I get the pagesize error I mentioned before. What could be wrong? I use execvp for executing the program.
Memtester is from charles cazabom(wery known memtester) - I'm on linux platform, but I think that doesn't matter.
Have a nice Day

Matt