Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 12
Posts: 12   Pages: 2   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1581 times and has 11 replies Next Thread
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to get critical information such as progress i.e. % completed and time used using command line

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.
[Nov 3, 2005 10:24:37 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: How to get critical information such as progress i.e. % completed and time used using command line


------- 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. applause
[Nov 3, 2005 2:36:55 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 12   Pages: 2   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Post new Thread