I found a workaround for the meantime.  

By exporting COLUMNS=160 and starting nessusd by hand
 (/etc/init.d/nessusd start) The environ was carried down to the
libnasl pread call.

Still would like to see a way of setting environs (safely) on pread.

-anon



On 8/9/05, Michel Arboi <[EMAIL PROTECTED]> wrote:
> On Tue Aug 09 2005 at 22:10, Michel Arboi wrote:
> 
> > The right way to do it would probably be:
> >  buf = pread(cmd:"sh", argv:make_list("sh", "-c", "COLUMNS=160 dpkg
> -l"));
> 
> Or rather
> buf = pread(cmd:"sh", argv:make_list("sh", "-c", '"COLUMNS=160 dpkg -l"'));
> _______________________________________________
> Nessus mailing list
> [email protected]
> http://mail.nessus.org/mailman/listinfo/nessus
>
_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to