Ok, I see, so the code should look somehow like this:

#!
/usr/bin/perl

use
warnings;
use
strict;


$command = "ls
-l";


while (system($command) != 0)
{
    my
$c++
}

But how could I test if the command executes if the return value changes?
...is there a unix command or other way that generates random/different
return values??

Reply via email to