VLAR bat


log in

Advanced search

Message boards : Number crunching : VLAR bat

1 · 2 · Next
Author Message
Profile Byron S Goodgame
Volunteer tester
Avatar
Send message
Joined: 16 Jan 06
Posts: 1151
Credit: 3,936,993
RAC: 0
United States
Message 847440 - Posted: 31 Dec 2008, 20:23:02 UTC
Last modified: 31 Dec 2008, 20:34:55 UTC

Hi,

I've never used a bat file before so I need some guidance on how to edit one to spot VLAR so I can abort them before they start. I've got this saved as a .bat file, it produces the read out text, but never spots the VLAR tasks. I don't get many, but the few I've had have never been spotted. This is what my bat file looks like for my XP Home system.

find /n "<true_angle_range>0.00" C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.* > vlarfound.txt

saved as a bat file, so what am I doing wrong?

Edit: Also, is this something I have to run each time I want to find VLAR or just everytime I start up Windows?
____________

Maik
Send message
Joined: 15 May 99
Posts: 163
Credit: 7,215,944
RAC: 0
Germany
Message 847449 - Posted: 31 Dec 2008, 20:41:57 UTC
Last modified: 31 Dec 2008, 20:42:46 UTC

Someone posted the batch-codelines here at the forum.
But i cant find the post to link the source ;)


findstr /n "<true_angle_range>0\.[0-1]" D:\boinc_data\projects\setiathome.berkeley.edu\*.* > low_ar.txt
findstr /n "<true_angle_range>0\.[2-9] <true_angle_range>1\.[0-1]" D:\boinc_data\projects\setiathome.berkeley.edu\*.* > medium_ar.txt
findstr /n "<true_angle_range>1\.[2-9] <true_angle_range>[2-9]\.[0-9] <true_angle_range>[1-9][0-9]\.[0-9]" D:\boinc_data\projects\setiathome.berkeley.edu\*.* > high_ar.txt

____________

Profile Byron S Goodgame
Volunteer tester
Avatar
Send message
Joined: 16 Jan 06
Posts: 1151
Credit: 3,936,993
RAC: 0
United States
Message 847451 - Posted: 31 Dec 2008, 20:43:37 UTC
Last modified: 31 Dec 2008, 20:45:59 UTC

yes, I tried that one too. Made the changes to reflect my OS, but didn't work either. Probably would work for me if I had Vista.

Really looking for what i've done wrong on mine though, but I'll try this one again.

thanks.
____________

Maik
Send message
Joined: 15 May 99
Posts: 163
Credit: 7,215,944
RAC: 0
Germany
Message 847452 - Posted: 31 Dec 2008, 20:45:19 UTC
Last modified: 31 Dec 2008, 20:45:40 UTC

find <> findstr
____________

Profile Byron S Goodgame
Volunteer tester
Avatar
Send message
Joined: 16 Jan 06
Posts: 1151
Credit: 3,936,993
RAC: 0
United States
Message 847453 - Posted: 31 Dec 2008, 20:48:37 UTC - in response to Message 847452.

Ok, thanks, I made that change. Will see what happens, apparently I don't have any ATM
____________

Fred W
Volunteer tester
Send message
Joined: 13 Jun 99
Posts: 2524
Credit: 11,954,210
RAC: 0
United Kingdom
Message 847455 - Posted: 31 Dec 2008, 20:57:49 UTC - in response to Message 847453.

Ok, thanks, I made that change. Will see what happens, apparently I don't have any ATM

FINDSTR is more useful than FIND since it does not output names of files that do not contain the searched-for string. I think the problem lies in the spaces included in the path to your data files. So this should work better:

findstr /n "<true_angle_range>0.00" "C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.*" > vlarfound.txt

Note the extra quotes round the file path.

Right-clicking on the output text file and "Open-with" Wordpad makes it much easier to read, especially if you set Wordpad to "no-wrap".

Hope this helps.

F.
____________

Profile Byron S Goodgame
Volunteer tester
Avatar
Send message
Joined: 16 Jan 06
Posts: 1151
Credit: 3,936,993
RAC: 0
United States
Message 847530 - Posted: 1 Jan 2009, 1:18:14 UTC - in response to Message 847455.

Ok, thanks, I made that change. Will see what happens, apparently I don't have any ATM

FINDSTR is more useful than FIND since it does not output names of files that do not contain the searched-for string. I think the problem lies in the spaces included in the path to your data files. So this should work better:

findstr /n "<true_angle_range>0.00" "C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.*" > vlarfound.txt

Note the extra quotes round the file path.

Right-clicking on the output text file and "Open-with" Wordpad makes it much easier to read, especially if you set Wordpad to "no-wrap".

Hope this helps.

F.

That helped immensely, and has spotted the VLAR for me finally. I appreciate letting me know what the problem was in mine so I can avoid such errors on my part in the future.

Thanks for your help Fred W and Maik. I'm a happy camper now.
____________

Fred W
Volunteer tester
Send message
Joined: 13 Jun 99
Posts: 2524
Credit: 11,954,210
RAC: 0
United Kingdom
Message 847866 - Posted: 1 Jan 2009, 20:07:51 UTC - in response to Message 847530.

That helped immensely, and has spotted the VLAR for me finally. I appreciate letting me know what the problem was in mine so I can avoid such errors on my part in the future.

Thanks for your help Fred W and Maik. I'm a happy camper now.

No problemo. Glad to be of service.

And here's a variant that may be of interest:

@echo off echo VLAR Tasks found: echo. findstr /M "<true_angle_range>0.00" "C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.*" > con: echo. echo Done. pause 0


If you save the text to a file on your desktop with a .bat extension, then you can double-click on the icon and it will list the offending files in the cmd window that it opens. When you have identified and aborted the files, return the focus to the cmd window and press any key (other than Shift, Alt, or Ctrl) and the cmd window will close. No need for a .txt file at all.

F.
____________

Profile Byron S Goodgame
Volunteer tester
Avatar
Send message
Joined: 16 Jan 06
Posts: 1151
Credit: 3,936,993
RAC: 0
United States
Message 847997 - Posted: 2 Jan 2009, 3:51:14 UTC
Last modified: 2 Jan 2009, 4:32:01 UTC

Hi,

That's really cool too, thanks.

I took what you gave me and applied it to what Maik posted and came up with

@echo off
echo VLAR Tasks found:
echo.
findstr /n "<true_angle_range>0\.[0-1]" "C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.*" > con:
echo.
echo Done.
pause 0.

I guess it's done correctly, it seems to work. Doesn't tell me the actual AR for each task this way but, it does give me the correct WU's in the ARs I'm looking for, so it's perfect for me.
Also went ahead and got the one Maik posted to work too.

findstr /n "<true_angle_range>0\.[0-1]" "C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.*" > low_ar.txt
findstr /n "<true_angle_range>0\.[2-9] <true_angle_range>1\.[0-1]" "C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.*" > medium_ar.txt
findstr /n "<true_angle_range>1\.[2-9] <true_angle_range>[2-9]\.[0-9] <true_angle_range>[1-9][0-9]\.[0-9]" "C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.*" > high_ar.txt

I wasn't getting the right path on that one all along too lol

Thanks again.
____________

Fred W
Volunteer tester
Send message
Joined: 13 Jun 99
Posts: 2524
Credit: 11,954,210
RAC: 0
United Kingdom
Message 848114 - Posted: 2 Jan 2009, 9:05:50 UTC - in response to Message 847997.

Hi,

That's really cool too, thanks.

I took what you gave me and applied it to what Maik posted and came up with

@echo off
echo VLAR Tasks found:
echo.
findstr /n "<true_angle_range>0\.[0-1]" "C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.*" > con:
echo.
echo Done.
pause 0.

I guess it's done correctly, it seems to work. Doesn't tell me the actual AR for each task this way but, it does give me the correct WU's in the ARs I'm looking for, so it's perfect for me.
Also went ahead and got the one Maik posted to work too.

findstr /n "<true_angle_range>0\.[0-1]" "C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.*" > low_ar.txt
findstr /n "<true_angle_range>0\.[2-9] <true_angle_range>1\.[0-1]" "C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.*" > medium_ar.txt
findstr /n "<true_angle_range>1\.[2-9] <true_angle_range>[2-9]\.[0-9] <true_angle_range>[1-9][0-9]\.[0-9]" "C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\*.*" > high_ar.txt

I wasn't getting the right path on that one all along too lol

Thanks again.

In the one that outputs to the console (con:), the /m is more useful than the /n. For some reason that I haven't figured out, with /n, the output of the angle range to con: is in invisible text as is any text following the file name of the last one found. The /m forces it to output the file name only which gives a tidier output in the cmd window.

F.
____________

Profile Byron S Goodgame
Volunteer tester
Avatar
Send message
Joined: 16 Jan 06
Posts: 1151
Credit: 3,936,993
RAC: 0
United States
Message 848133 - Posted: 2 Jan 2009, 10:43:45 UTC - in response to Message 848114.
Last modified: 2 Jan 2009, 10:44:07 UTC

Yep, good point. Much easier to see using m for the first batch file example. Using n on the second example with multiple AR gives me the AR included with the WU in the text file, where m doesn't.
____________

Fred W
Volunteer tester
Send message
Joined: 13 Jun 99
Posts: 2524
Credit: 11,954,210
RAC: 0
United Kingdom
Message 848145 - Posted: 2 Jan 2009, 12:15:57 UTC - in response to Message 848133.

Yep, good point. Much easier to see using m for the first batch file example. Using n on the second example with multiple AR gives me the AR included with the WU in the text file, where m doesn't.

One other point (since I am still waiting for the traffic to die down so I can report my results). If your preference is for the .txt file output, you can get the batch file to automatically open one of the output files in wordpad when it is done. You have to find the full path to wordpad.exe on your machine (on my XP laptop it is C:\Program Files\Windows NT\Accessories\wordpad.exe). If you want to look at your low_ar.txt file then, using my wordpad.exe location as an example, just add the following line to the end of your version of Maik's .bat file:

Call "C:\Program Files\Windows NT\Accessories\wordpad.exe" low_ar.txt

F.
____________

Maik
Send message
Joined: 15 May 99
Posts: 163
Credit: 7,215,944
RAC: 0
Germany
Message 848151 - Posted: 2 Jan 2009, 12:32:12 UTC - in response to Message 848145.

... version of Maik's .bat file ...


To be correctly it isnt my batch-file. Some other user posted it but i wasnt able to find the post ;)
____________

Profile Byron S Goodgame
Volunteer tester
Avatar
Send message
Joined: 16 Jan 06
Posts: 1151
Credit: 3,936,993
RAC: 0
United States
Message 848155 - Posted: 2 Jan 2009, 12:49:57 UTC - in response to Message 848145.
Last modified: 2 Jan 2009, 12:53:13 UTC

I'd already decided to use the version of the one you created without the text file the most. It has the info I need to know about which VLAR tasks to abort, and is one step. That works well for me :) my desktop is cluttered enough.

Sometimes I do get curious, and will use one of the others, depending on the AR I'm curious about seeing, but I only edited the ones I mentioned to see what the differences were, as well as to know that I could edit them successfully.

Thanks for the tip about word pad, I'll set up whichever one I end up using to get a text file with that. I tend to create/edit the batch files in notepad (old habit from doing html), but always look at the results in word pad, so that will come in very handy.

BTW the servers just gave my pc's some work so hopefully it won't be much longer before you're crunching away.

Thanks again
____________

Fred W
Volunteer tester
Send message
Joined: 13 Jun 99
Posts: 2524
Credit: 11,954,210
RAC: 0
United Kingdom
Message 848174 - Posted: 2 Jan 2009, 13:42:17 UTC - in response to Message 848155.


<snip>
I tend to create/edit the batch files in notepad (old habit from doing html), but always look at the results in word pad, so that will come in very handy.

BTW the servers just gave my pc's some work so hopefully it won't be much longer before you're crunching away.

Thanks again

Yeah, Notepad for writing, Wordpad for reading - me too. Comes with long experience.

And no worries, still crunching away. I still have 15 AP's unstarted in my cache as well as many MB's. The AP's alone will take 50+ hours to get through on the 3 cores I have devoted to S@H.

F.
____________

kevin6912
Volunteer tester
Send message
Joined: 18 Jul 99
Posts: 17
Credit: 10,462,867
RAC: 3,180
United States
Message 848188 - Posted: 2 Jan 2009, 14:06:28 UTC

I found this batch-file in this forum thread on Seti Beta

Regards,
Kevin

Maik
Send message
Joined: 15 May 99
Posts: 163
Credit: 7,215,944
RAC: 0
Germany
Message 848195 - Posted: 2 Jan 2009, 14:24:31 UTC
Last modified: 2 Jan 2009, 14:25:42 UTC

Got a lot of VeryLowAngelRange WU's since server-crashed ...
Nearly all of them are going stuck :/

I found this batch-file in this forum thread on Seti Beta

Regards,
Kevin

Tanks Kevin, thats the one who posted it first ^^ : Alexander Klietz
____________

Profile AlphaLaser
Volunteer tester
Send message
Joined: 22 Aug 06
Posts: 262
Credit: 45,707
RAC: 0
United States
Message 849149 - Posted: 4 Jan 2009, 6:20:59 UTC - in response to Message 848174.


<snip>
I tend to create/edit the batch files in notepad (old habit from doing html), but always look at the results in word pad, so that will come in very handy.

BTW the servers just gave my pc's some work so hopefully it won't be much longer before you're crunching away.

Thanks again

Yeah, Notepad for writing, Wordpad for reading - me too. Comes with long experience.

And no worries, still crunching away. I still have 15 AP's unstarted in my cache as well as many MB's. The AP's alone will take 50+ hours to get through on the 3 cores I have devoted to S@H.

F.


I ditched both and replaced it by Notepad+, it doesn't crash on large files, tabbed screens, and I think it handles Unix/Mac line endings too. You could easily go one step further with the multitude of free syntax highlighting editors useful for things like XML editing.

____________

Profile Fluffy
Volunteer tester
Avatar
Send message
Joined: 30 Nov 00
Posts: 44
Credit: 200,235
RAC: 0
United States
Message 849813 - Posted: 5 Jan 2009, 20:33:26 UTC - in response to Message 849149.


<snip>
I tend to create/edit the batch files in notepad (old habit from doing html), but always look at the results in word pad, so that will come in very handy.

BTW the servers just gave my pc's some work so hopefully it won't be much longer before you're crunching away.

Thanks again

Yeah, Notepad for writing, Wordpad for reading - me too. Comes with long experience.

And no worries, still crunching away. I still have 15 AP's unstarted in my cache as well as many MB's. The AP's alone will take 50+ hours to get through on the 3 cores I have devoted to S@H.

F.


I ditched both and replaced it by Notepad+, it doesn't crash on large files, tabbed screens, and I think it handles Unix/Mac line endings too. You could easily go one step further with the multitude of free syntax highlighting editors useful for things like XML editing.


I found Metapad as well, less features but still much better then notepad and wordpad and a smaller footprint too ..@110k vs @430k.

____________

HAY! Watch this!
LLLLEEEEEERRRROOOOOYYYYY!
...yikes...

Zoran Kirsic
Send message
Joined: 22 May 99
Posts: 34
Credit: 74,554
RAC: 0
Croatia
Message 853479 - Posted: 14 Jan 2009, 21:15:38 UTC - in response to Message 848133.

Yep, good point. Much easier to see using m for the first batch file example. Using n on the second example with multiple AR gives me the AR included with the WU in the text file, where m doesn't.



and what you do with this WU in "low_ar.txt", abort them?

1 · 2 · Next

Message boards : Number crunching : VLAR bat

Copyright © 2014 University of California