[Openvas-discuss] OpenVAS client attempts to open display (workaround)

iaf at iaf.ca iaf at iaf.ca
Thu Jul 3 19:45:46 CEST 2008


> On Wednesday 02 July 2008 20:16:19 iaf at iaf.ca wrote:
>> When I run OpenVAS-Client in 'quiet' mode in a cron job error 'cannot
>> open
>> display' is returned.  The only way I can get the cron job to work is to
>> start X and specify the --display=localhost:0 option in the
>> OpenVAS-Client
>> command.
>
> Running OpenVAS-Client from a tty with no DISPLAY variable set works fine
> for
> me.  How are you calling it?  I used the following:
>
> OpenVAS-Client -x -q 127.0.0.1 1241 username password ips.txt report.nbe
>
> Cheers,
> Tim
> --
> Tim Brown
> <mailto:timb at nth-dimension.org.uk>
> <http://www.nth-dimension.org.uk/>
>

I built OpenVAS-Client 1.0.4 using 'configure --disable-gtk' and I can now
run it in batch mode without having to start X or set a DISPLAY variable. 
It looks like some display initialisation code may get called even when
'quiet' (batch) mode is specified.

Regards,
Ian.





More information about the Openvas-discuss mailing list