Re: [webmin-devel] RPC webmin

"Jamie Cameron" <[email protected]> Wed, 29 Apr 2009 21:56:48 -0700 (PDT)
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
remote_foreign_config returns a hash ref - you need to use
code like :

$remote_config=&remote_foreign_config($in{'server'},"firewall");
print $remote_config->{'direct'};

 - Jamie

On 29/Apr/2009 07:30 hahmed wrote ..
> ok, Thx :)
> I tried the following to get the config of a remote webmin server
> (already configured in the webmin servers index and I tried the
> remote_foreign_check to check if everything is all right) :
> 
> %remote_config=&remote_foreign_config($in{'server'},"firewall");
> but when I try to print the elements of the hash, like following :
> 
> print "$remote_config{'direct'}";
> foreach $remote_config (values %remote_config)
> {
>         print "Some config is $remote_config\n";
> }
> I got an empty string, although 'direct' exists in the remote host
> config and its value is 0.
> Any help please.
> regards
> h.ahmed
> 
> 2009/4/29, Jamie Cameron <[email protected]>:
> >
> >    On 28/Apr/2009 14:06 hahmed wrote ..
> >
> >    Thanks for the reply.
> >    Can u please give me a detailed documentation on the RPC functions and
> > the
> >    other API of the Webmin.
> >    I have the documentation "Managing Linux Systems with webmin" that u
> > wrote
> >    in 2004.
> >    Is there a newer one ?
> >    regards
> >    h.ahmed
> >
> >    The    best    place    to    look    is   the   developer   docs   at
> >    http://doxfer.com/Webmin/WebHome
> >     - Jamie
> >
> 
> 
> -- 
> Ahmed Hamouda
> 
> http://www.fedora-tunisia.org/
> http://forums.fedora-fr.org/
> 
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations 
> Conference from O'Reilly Media. Velocity features a full day of 
> expert-led, hands-on workshops and two days of sessions from industry 
> leaders in dedicated Performance & Operations tracks. Use code vel09scf 
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> -
> Forwarded by the Webmin development list at [email protected]
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel