View Single Post
Old 2004-10-10, 13:33   #1
hc_grove
 
Oct 2004

2 Posts
Question Running multiple copies of mprime on Linux

Hi

I'm most active in Seventeen or Bust, but as I have as I have a problem with a test version of mprime (some new code for P-1 factoring) George suggested that I posted here.

I use a bunch of different machines (home directory shared via NFS) to run a mixture of prp clients, sieve clients and P-1 clients. To make that a bit easier I have written some scripts to start any client on any machine. Basically I have a script called `on` that two arguments a hostname and a job name, it then logs in on the given host, changes to the directory given be the job name, and starts another script called `job.sh`. Apart from some commands that just help me find out what jobs run on what computer, the job.sh scripts I created for mprime looks like this:
Code:
#! /bin/sh
cd ~/17orbust/p-1_1
./mprime -A1 &
and
Code:
#! /bin/sh
cd ~/17orbust/p-1_2
./mprime -A2 &
When I try to run these two scripts on the same machine (called shannon), the following happens:
Code:
grove@galois > ./on shannon p-1_1
grove@galois > ./on shannon p-1_2
grove@galois > Another mprime is already running!
What am I doing wrong
hc_grove is offline   Reply With Quote