Hello,
I've been trying to make a small script that drives pymol completely
uninteractively using a pymol -c -p command.
Unfortunately, pymol is polling from stdin DURING the reading of
scripts from within a @ command, which leads to painful race
conditions, as I'm wrapping the call to scripts to a cd in/cd out
command.
For instance, I'm running
cd /home/vincent/Recherche/Proteines/CODH
@ CODH-clusters.pml
cd /home/vincent/tmp
The CODH-clusters.pml runs a series of pymol scripts by itself.
As you can see below, the cd /home/vincent/tmp comes between
select prot, ((all) and (not ((fes) or (nifes))))
and
select s, /////S3
Both of these commands are within the
"CODH-Chydrogenoformans-definitions.pml" script. This is really
painful, since one cannot assume that because one sends commands
sequentially, the previous one is finished before the next one starts.
============================================================
PyMOL>cd /home/vincent/Recherche/Proteines/CODH
cd: now in /home/vincent/Recherche/Proteines/CODH
PyMOL>@ CODH-clusters.pml
PyMOL>@ CODH-vue-generale.pml
PyMOL>@ CODH-Chydrogenoformans-definitions.pml
PyMOL>load ../PDB/1SU8.pdb.gz, Ch;
[...]
PyMOL>select prot, ((all) and (not ((fes) or (nifes))))
Selector: selection "prot" defined with 11466 atoms.
PyMOL>cd /home/vincent/tmp
PyMOL>select s, /////S3
============================================================
I'll try to see if this can be easily fixed...
Vincent