On Wed, Mar 03, 2004 at 12:26:42PM +0000, Ashutosh Naik wrote:
> Or is it that, I cannot set the knowledge base item
> and read it from inside a single plugin, but I can
> read the knowledge base item when I have come out of
> that particular plugin into some other plugin which
> runs after it ?


Yes. If you have a.nasl which does :

set_kb_item(name:"foo", value:"bar");
if ( get_kb_item("foo") == "bar" ) do_stuff();

Then this is invalid.



However, having a.nasl do :

set_kb_item(name:"foo", value:"bar");

And b.nasl do :

script_dependencies("a.nasl");

if ( get_kb_item("foo") == "bar" ) do_stuff();


Then this is valid and will work.


                                -- Renaud
_______________________________________________
Nessus mailing list
[EMAIL PROTECTED]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to