The way I was planning on doing this was by calling each instance of the python code from a bash script. Here it is for four folders.
Expand|Select|Wrap|Line Numbers
- #!/bin/sh
- for i in $(seq 0 3);
- do
- python calculate.py $i &
- done
- wait
- exit 0
Now here is the problem. When I run this script, folder0 is worked on correctly. The other 3 folders are not. Here is some output.
Expand|Select|Wrap|Line Numbers
- -bash-3.1$ ./test.sh
- Engage the System
- Engage the System
- Engage the System
- Engage the System
- reading `/tmp/shared/sqb/folder0/snapshot_000' ...
- Error: can't open file.
- allocating memory...done
- Error: can't open file.
- Error: can't open file.
- reordering...done.
- space for particle ID freed
- DONE
- DONE
- DONE
- .
- .
- folder0 is being worked on...
- .
- .
- DONE
Thanks for all your help