On Thu, 05 Aug 1999, Arnold R. Hart wrote:
> I have a laptop and can't seem to figure out how to run prime95 when the
> laptop is plugged in, but not when it is operating on battery power. I'm
> running MS Win'98. (release 2???) The powermanagement software will let
> me start prime95 (18.1) when I boot, but if I log-off, then prime95 exits.
> If I install prime95 as a service, then I can't seem to shut it down via
> the power save since I didn't start it via the power save software.
> As I see it, the easiest solution would be to find a way to close it from
> the command line. My power save software allows me to set "warnings" that
> will run given programs when the batery gets below a certain level. I'd
> like to, unless there is a better solution, set a warning at 99% that would
> run a batch file to close prime95. Is this possible?
I don't know if it's possible to suspend a program from the command line in
Windows, but if there's a way to do it, you can probably do it with kill in
Cygwin. (I don't know offhand if Cygwin has kill.)
I have a cron job on the laptop that automatically starts nfsieve (I'm running
mprime on the desktop) if it isn't running and nfs.out exists, renices it, and
suspends it if the battery is low or restarts it if it is high.
phma
_________________________________________________________________
Unsubscribe & list info -- http://www.scruz.net/~luke/signup.htm
Mersenne Prime FAQ -- http://www.tasam.com/~lrwiman/FAQ-mers