| Index | Recent Threads | Unanswered Threads | Who's Active | Guidelines | Search |
| World Community Grid Forums
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 12
|
|
| Author |
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
It appears that these info are contained in the section 'active task' of the file 'client_state.xml ' . Is there any command/script to easily extract these out? from my systemstatus script ------- snip ---------------------------------- BOINCPATH=/home/standard/BOINC BOINCDATA="`grep "checkpoint_cpu_time\|fraction_done\|user_total_credit\|host_total_credit" $BOINCPATH/client_state.xml | sed -e "s/<\/[^>]*>//" | sed -e "s/<//" | sed -e "s/>/:/"`" ------- snap ---------------------------------- You can "cat" the variable $BOINCDATA, "mail" it, etc. In the or'ed pattern list of the "grep" you say which items of the client_state file you are interested in. Note: the above script excerpt is only 2 lines! The second is very long but there's no line break although it may appear so (depends on your monitor resolution). Best, Stefan. |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
------- snip ---------------------------------- BOINCPATH=/home/standard/BOINC BOINCDATA="`grep "checkpoint_cpu_time\|fraction_done\|user_total_credit\|host_total_credit" $BOINCPATH/client_state.xml | sed -e "s/<\/[^>]*>//" | sed -e "s/<//" | sed -e "s/>/:/"`" ------- snap ---------------------------------- You can "cat" the variable $BOINCDATA, "mail" it, etc. In the or'ed pattern list of the "grep" you say which items of the client_state file you are interested in. Note: the above script excerpt is only 2 lines! The second is very long but there's no line break although it may appear so (depends on your monitor resolution). Hi Stefan, Thanks for the sh script which works well. ![]() |
||
|
|
|