>>>>> 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:

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

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

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!
Net-snmp-coders mailing list