Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Monitor SETI command line client progress UNIX
Thanks to Authoxy, I am finally able to process units for SETI from behind the company firewall.

I decided to use the command line client and wanted a way to check the progress of a workunit being processed, so I made this little Perl script which displays '% complete' and 'hours processing' other things could be added if you'd like.
#!/usr/bin/perl -w

open (INPUT, "< (path to seti state.sah file goes here) ");
my @file = <INPUT>;
close(INPUT);
chomp(@file);
my %hash;

foreach $item(@file)
{
my @array = split("=", $item);
$hash{$array[0]} = $array[1];
}

$perc = sprintf("%.1f",$hash{prog}*100);
$time = sprintf("%.2f",$hash{cpu}/3600);
print "\nSETI CLI MONITOR\n----------\n$perc % processed\n
   $time hours processing\n\n";
That last line is one long line, and make sure you insert the path to the state.sah file in line two of the script!

I saved this in my home directory as 'checkseti.pl' chmod'ed it to be executable, and added an alias to it in my /etc/csh.login file so I can run it from anywhere on my system. The output looks like this:
45.7 % processed
6.26 hours processing
I hope some of you find this useful.
    •    
  • Currently 2.50 / 5
  You rated: 3 / 5 (4 votes cast)
 
[3,559 views]  

Monitor SETI command line client progress | 5 comments | Create New Account
Click here to return to the 'Monitor SETI command line client progress' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Monitor SETI command line client progress
Authored by: nxor on Mar 14, '03 11:17:52AM
I can't believe people shorten the life of their CPU running SETI. Besides, if we find aliens several light years away, what are we going to do about it?

If you're into distributed computing, there's Folding at home which simulates protein folding and related diseases. They've already had some success too.

[ Reply to This | # ]
Monitor SETI command line client progress
Authored by: spenton on Mar 14, '03 01:01:47PM

>I can't believe people shorten the life of their CPU running SETI. Besides, if we find aliens several light years away, what are we going to do about it?

Hmm, well we could give them your address to put on their "stop by for
a checkup list". But, the point is, to try.

Do you really think that running SETI is going to shorten the lifetime of your precious CPU ? I've got a ten year old unix box that still scans the skys. Go ahead and toss a few poor scientists your extra CPU cycles, your CPU is not going to burn out. Your cat, really an alien, may however take a whiz on your keyboard.



[ Reply to This | # ]
Monitor SETI command line client progress
Authored by: numpins on Mar 15, '03 01:44:13PM

If running SETI shortens the life of your CPU, how can you recommend people run another distributed computing client? Spenton is right; the CPU's life is _not_ shortened just because it's working. That's a CPU's job - to do "stuff."

Anyway, I wanted to use the Folding@Home client but it's not up to the standards of the distributed.net or SETI client. It's a more difficult to set up and the progress output is rather cryptic. S@H and F@H also need to provide options for portable users. I'd use those clients on my iMac but not my iBook. While d.net will realize that I'm running on battery power and pause, S@H and F@H will suck my battery dry.



[ Reply to This | # ]
Monitor SETI command line client progress
Authored by: merlyn on Mar 14, '03 12:52:09PM
Cleaning that up a bit,
#!/usr/bin/perl -w

@ARGV = "/path/to/your/state.sah/file/here";
my $prog;
my $cpu;
while (<>) {
  $prog = $1 if /^prog=(.*)/;
  $cpu = $1 if /^cpu=(.*)/;
}

printf
  "\nSETI CLI MONITOR\n" .
    "----------------\n" .
  "%.1f %% processed\n" .
  "%.2f hours processing\n\n",
  $prog * 100, $cpu / 3600;
(Moderator... the preview code is still busted... it keeps turning entities into their equivalents on each preview pass... maybe you should have picked a Perl community system instead of the inferior PHP. {grin})

[ Reply to This | # ]
Monitor SETI command line client progress
Authored by: DeadAir on Mar 17, '03 08:14:53AM

Have you tried SetiCNTL as a simple OS X GUI for the Terminal.

It is a free download from Pandora Products at:

http://members.bellatlantic.net/~vze35xda/software.html

Allows caching of WUs, single or dual peocessors Macs, indicates progress and time taken to complete each WU.

Has worked well for me.



[ Reply to This | # ]