Re: [gDesklets] IExec control does not get output
- From: Bjoern Koch <H Humpel gmx de>
- To: Peter Kutak <peter kutak microstep-mis com>
- Cc: gdesklets-list gnome org
- Subject: Re: [gDesklets] IExec control does not get output
- Date: Tue, 06 Mar 2012 20:05:08 +0100
Hi there,
"cat /proc/mdstat"... ?!
Working on a (Software-)RAID-Desklet ?? ;)
I wouldn't use the IExec Control for this. This is (IMHO) something that
should be done with a Control.
I have been working on a Software-Raid Control (back then in 2009... :/
) and there is a some-kind-of-finished SoftRaid-Control somewhere
here... just need some more time to finish it.
If you are interested I could send you the code...
The IExec Control ... well, very useful and "tempting" for a "quick and
dirty" solution. But in most cases - if not almost every case - a
Control would be the better solution.
AFAIR there has been a "good vs. evil" discussion about this Control
back then when it was released ;).
Just my 5 cents ...
Greetings, Bjoern
Am 06.03.2012 16:55, schrieb Peter Kutak:
> Hi,
>
> I try to use IExec control to execute and display output of "cat
> /proc/mdstat"
> Output of the command is following:
>
> Personalities :
> unused devices: <none>
>
> My problem is, that output contains unescaped chars "<>" (lower than,
> greater than)
> Maybe all xml special chars are problematic.
>
> I am new in Python and do not understand of limitation to import python
> libraries in gdesklets.
>
> Any suggestions how to escape(myExec.output)?
>
> Thanks,
> Peterk
>
>
> _______________________________________________
> gdesklets-list mailing list
> gdesklets-list gnome org
> http://mail.gnome.org/mailman/listinfo/gdesklets-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]