>>>>> On Fri, 3 Mar 2006 17:59:13 +0530, said:

kanda> #@startperl@
kanda> #if [[ $(grep -c "$i.parent" tst.txt) != 0 ]];then echo "working 123";fi
kanda> #@endperl@

That's not perl in there... that looks more like sh.

Try this instead:

@startperl@
system("grep -c "$i.parent" tst.txt");
if ($?) {
print "working 123\n";
$vars{'c'} = 1;
} else {
print "not working 123\n";
$vars{'c'} = 0;
}
@endperl@

@if $c == 1@
some mib2c output
@else@
some other mib2c output
@end@



Now, having said that I'm not sure why you're needing to do that
within the mib2c.scalar.conf file... That sounds slightly suspicious
as far as the best thing that you should be doing.

--
Wes Hardaker
Sparta, Inc.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=...720&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders