I've been exploring Xgrid a little more, and I think I've made significant progress. Following the previous posts (here and here), I fired up an Xgrid Controller from the command line, checked it out in Xgrid Admin, and then did a few examples:
We run /bin/echo with an argument:
Now, to do serious work, you'll want to copy over a directory that has goodies in it. For starters here is a text file in /temp on my Desktop:
And, without further ado, here is a Python script:
Change that last to be a submit request:
Actually, this output is too long to post! It starts like:
There are instructions in Drew McCormack's tutorial for using the result from this specification thingie to build a plist file that can be used for batch jobs that execute multiple commands. But that's hardly necessary if we can run a Python script.
Just remember to check your permissions! I've read that we execute our code in /tmp as user nobody. I'm not sure of that because I couldn't get /bin/ls to work in xgrid. So make sure any user can run the application you want to run (say BLAST, that's our next goal).
One more thing, let's see whether we can get an executable to move from the Client to the Agent and run. Compile this (and test it):
Now do:
minus the log stuff, the output is:
I'd call that a pretty good morning!
[UPDATE:
sudo
is only needed for the xgridctl
command, not for xgrid
. My bad.