mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   Prime95 on ghosted machines (https://www.mersenneforum.org/showthread.php?t=5563)

lozcs 2006-03-03 16:58

Prime95 on ghosted machines
 
I want to run Prime95 on 6 machines that are on 24/7 but ghosted every night at 2am

Before I try loads of different things, what is the best way to do this?

Thoughts so far,

Run Prime95 from a \\servername\share

Have a schedule that copies the mersenne directory to a server and then back again once ghosted?

Thoughts please!

Lawrence......

Cruelty 2006-03-03 21:06

[QUOTE=lozcs]Run Prime95 from a \\servername\share[/QUOTE]
Looks like a good idea.

moo 2006-03-03 23:53

why not run prime95 straight from the server with a bat file.

lozcs 2006-03-04 01:54

[QUOTE=moo]why not run prime95 straight from the server with a bat file.[/QUOTE]

so set up the shares for each PC on the server

eg.

\\server\computername

the on the client simply call

\\server\%computername%\prime95.exe

That's it?

Prime95 2006-03-04 03:19

if your users logout, then you might not be able to run the prime95 as a service

moo 2006-03-04 06:05

lets play the game then
make a schduled task that runs each time the computer starts have it call
\\servername\%computername%\prime95.exe
have it run under admin account. if its xp all the better ok so use that as what program to call have it run on startup and you should be set. if you get to a client machine and get on msn i can show you clearly how to do it.

lozcs 2006-03-05 14:44

So I can use the variable %computername% in the scheduler - as long as the shares are in place?

[QUOTE=moo]lets play the game then
make a schduled task that runs each time the computer starts have it call
\\servername\%computername%\prime95.exe
have it run under admin account. if its xp all the better ok so use that as what program to call have it run on startup and you should be set. if you get to a client machine and get on msn i can show you clearly how to do it.[/QUOTE]

moo 2006-03-05 19:31

yes you should.

lozcs 2006-11-28 17:03

Hi,

Just added another 5 P4 machines to this network so working on this now...

I have created the shares on the server \\servername\01$ 02$ etc

first I mapped a M drive to the share then tried to install the ntprime service. This installed OK but couldn't start

So I tried to run prime95.exe from the share

\\servername\01$\prime95.exe

and I get the following error.

[SIZE="2"]ERROR: unable to open spool file
unable to open log file
ERROR: unable to open spool file
unable to open log file
ERROR: unable to open spool file
unable to open log file
ERROR: unable to open spool file
unable to open log file
Mersenne number primality test program version 24.14
Cannot write to file worktodo.ini
Error opening results file to output this message:
Unable to open log file.
Cannot write to file worktodo.ini
Unable to open log file.
Will try contacting server again in 60 minutes[/SIZE]

Can anyone help?

Thanks,

Lawrence......

[QUOTE=moo;74453]lets play the game then
make a schduled task that runs each time the computer starts have it call
\\servername\%computername%\prime95.exe
have it run under admin account. if its xp all the better ok so use that as what program to call have it run on startup and you should be set. if you get to a client machine and get on msn i can show you clearly how to do it.[/QUOTE]

S485122 2006-11-28 20:07

A service wil not be able to start from a share since the share will not be present at startup.

I see two possible causes :
- the clients do not have write access to their shares.
- more probable since I suppose you already checked that, prime95 cannot run from an unc location. So you must start prime95 from your M:\ drive not from the UNC.

You could use one share only with subdirectories per computer.

A batch file like this should do the job :
Prime95_start.cmd[CODE]net use M: \\SERVERNAME\PRIME95$
M:
cd \%computername%
start prime95.exe[/CODE]Next you put this batch file in the windows directory for instance and add the following to the registry of your ghost sources to have the batch file run at startup with the system account :[CODE]Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Prime95"="C:\\Windows\\Prime95_start.cmd"[/CODE]

moo 2006-11-28 23:44

try this
right click on server share and click allow users to change my files
also you might want the main share to include a dollar sign after it
so sharename$ this will hide the share.


All times are UTC. The time now is 20:49.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.