|
From: hahmed <dim...@gm...> - 2009-04-30 07:51:10
|
Thanks for the reply, I forgot that the subroutines accepts and return only
a scalar a value. That's why we use the references.(I'm a newbie in Perl
though).
regards
h.ahmed
2009/4/30 Jamie Cameron <jca...@we...>
> 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 <jca...@we...>:
> > >
> > > 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 web...@we...
> > 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 web...@we...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel
>
--
Ahmed Hamouda
http://www.fedora-tunisia.org/
http://forums.fedora-fr.org/
|