TDE network applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.sh 582B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. ID=`dcopstart rssservice`
  3. #dcop $ID RSSService add "http://www.kde.org/dotkdeorg.rdf"
  4. #dcop $ID RSSService add "http://freshmeat.net/backend/fm.rdf"
  5. #dcop $REF1 refresh
  6. #dcop $REF2 refresh
  7. echo "Articles:"
  8. DOCS=`dcop rssservice RSSService list`
  9. for DOC in $DOCS
  10. do
  11. DOCREF=`dcop rssservice RSSService document "$DOC"`
  12. TITLE=`dcop $DOCREF title`
  13. CNT=`dcop $DOCREF count`
  14. echo $TITLE - $CNT
  15. echo "------------------------------------"
  16. while let "CNT >0"
  17. do
  18. let "CNT=CNT-1"
  19. ART=`dcop $DOCREF article $CNT`
  20. TEXT=`dcop $ART title`
  21. echo "$CNT $TEXT"
  22. done
  23. done