> > Don't know enough about perl to comment further. I might have to RTFM
:-)
>
> same to me.
> and i modified   /etc/e-smith/web/funtions/monitor file to below.
>
> first, I had commeted all @dispRed  variable in sub function because it is
used
>
> for global variable already.
>
> Line 70.   # $q->param(-name=>"dispred", value=>@dispRed);
> Line 79.   # $q->param(-name=>"dispred", value=>@dispRed);
> Line 85.   # $q->param(-name=>"dispred", value=>@dispRed);

If you don't comment out this next line

> Line 100. #my ($q) = @_;

Then you don't need to add any code

> Line 148  #my @dispRed = $q->param("dispred");



Then you don't need to add any code

So in summary:
Comment out the following lines

Line 70.   # $q->param(-name=>"dispred", value=>@dispRed);
Line 79.   # $q->param(-name=>"dispred", value=>@dispRed);
Line 85.   # $q->param(-name=>"dispred", value=>@dispRed);
Line 100  #my @dispRed = $q->param("dispred");
Line 148  #my @dispRed = $q->param("dispred");


Mind you I still don't know if this is the correct way to do this.
My debugging indicated that the array being passed to the functions has only
one entry, hence the issue of only eth0 being displayed.

Rod




--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to