From kde Thu Jul 14 00:39:07 2005 From: Andy Teijelo =?utf-8?q?P=C3=A9rez?= Date: Thu, 14 Jul 2005 00:39:07 +0000 To: kde Subject: Re: [kde] Automatic proxy configuration for KDE (cont.) Message-Id: <200507132039.07227.ateijelo () uh ! cu> X-MARC-Message: https://marc.info/?l=kde&m=112130202612228 El Miércoles, 13 de Julio de 2005 3:40, Kevin Krammer escribió: > A brute force method would be > > ---------- > #!/bin/bash > > APPS=$(dcop) > > for app in $APPS; do > dcop $app KIO::Scheduler reparseSlaveConfiguration http; > done; > --------- Well, I did something like that, only "bruter" (is that a word?): ----------------------------------------------------------- #!/bin/bash dcop | while read i do #echo "i: $i" objs="$(dcop $i)" for o in $objs do #echo "o: $o" if [ $o == "KIO::Scheduler" ] then dcop $i $o reparseSlaveConfiguration http fi done done ----------------------------------------------------------- I didn't realize that a simple error message like "object not accessible" does no harm, and reduces the execution time from O(n^2) to O(n). Well, the hack is already working. Thanks. Saludos, Andy. ___________________________________________________ This message is from the kde mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.