Message boards :
Number crunching :
VLAR bat
Message board moderation
Author | Message |
---|---|
Byron S Goodgame Send message Joined: 16 Jan 06 Posts: 1145 Credit: 3,936,993 RAC: 0 |
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: 9,208,555 RAC: 0 |
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 |
Byron S Goodgame Send message Joined: 16 Jan 06 Posts: 1145 Credit: 3,936,993 RAC: 0 |
|
Maik Send message Joined: 15 May 99 Posts: 163 Credit: 9,208,555 RAC: 0 |
find <> findstr |
Byron S Goodgame Send message Joined: 16 Jan 06 Posts: 1145 Credit: 3,936,993 RAC: 0 |
|
Fred W Send message Joined: 13 Jun 99 Posts: 2524 Credit: 11,954,210 RAC: 0 |
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. |
Byron S Goodgame Send message Joined: 16 Jan 06 Posts: 1145 Credit: 3,936,993 RAC: 0 |
Ok, thanks, I made that change. Will see what happens, apparently I don't have any ATM 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 Send message Joined: 13 Jun 99 Posts: 2524 Credit: 11,954,210 RAC: 0 |
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. 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. |
Byron S Goodgame Send message Joined: 16 Jan 06 Posts: 1145 Credit: 3,936,993 RAC: 0 |
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 Send message Joined: 13 Jun 99 Posts: 2524 Credit: 11,954,210 RAC: 0 |
Hi, 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. |
Byron S Goodgame Send message Joined: 16 Jan 06 Posts: 1145 Credit: 3,936,993 RAC: 0 |
|
Fred W Send message Joined: 13 Jun 99 Posts: 2524 Credit: 11,954,210 RAC: 0 |
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: 9,208,555 RAC: 0 |
... 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 ;) |
Byron S Goodgame Send message Joined: 16 Jan 06 Posts: 1145 Credit: 3,936,993 RAC: 0 |
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 Send message Joined: 13 Jun 99 Posts: 2524 Credit: 11,954,210 RAC: 0 |
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 Send message Joined: 18 Jul 99 Posts: 17 Credit: 10,539,602 RAC: 0 |
|
Maik Send message Joined: 15 May 99 Posts: 163 Credit: 9,208,555 RAC: 0 |
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 Tanks Kevin, thats the one who posted it first ^^ : Alexander Klietz |
AlphaLaser Send message Joined: 6 Jul 03 Posts: 262 Credit: 4,430,487 RAC: 0 |
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. |
Death2Gnomes Send message Joined: 30 Nov 00 Posts: 48 Credit: 246,481 RAC: 0 |
I found Metapad as well, less features but still much better then notepad and wordpad and a smaller footprint too ..@110k vs @430k. "Red Warrior Needs Food Badly" |
Zoran Kirsic Send message Joined: 22 May 99 Posts: 34 Credit: 102,258 RAC: 0 |
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? |
©2024 University of California
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.