I think homey has the right idea (in fact, I think his script is only missing one character):
# set this to the number of times you want to run
for (( i=1; i<$num; i++ )); do
Without the '&' the script will launch all of the ls commands one-at-a-time. That won't tax a cluster much. Running them in the background will allow the script to shoot off each ls without waiting for it to finish.
Originally posted by Lion0928
What I was thinking was that it could be done like:
./testapp -someargument X
Short answer: no, there's no global command-line argument to cause a process to spawn X times.
Long answer: It depends on the software. You say you compiled it. I don't know if that means you wrote it yourself, or just downloaded a tarball from a site. I'm assuming you downloaded it, because you'd probably know whether the program supports that kind of command-line argument if you wrote it
So, you'll need to check the software's documentation. That's not a fequently needed option, so I would guess you'll have to use a script like homey suggested. You'll also need to know how a job gets placed into the cluster's job pool. I don't have any experience with clusters, but I would imagine there is some sort of special command to submit a job into the cluster (as opposed to just running a command on the local machine/node you're using). Again, that should be in documentation somewhere, and you'd have to modify the script accordingly.