On 10/02/2015 04:51 PM, Robert Hanson wrote:
> Ah, OK. That's it. Thanks, Rolf.
>
>
> Dwey, try wrapping your structure data with
>
> load DATA "mydata"
> ...
> end "mydata"
>
> and then use the Jmol -s - option.
>
> -s indicates to read a script file, and "-" indicates that we are using
> System.in for that file data.
>
>>From jmol -h:
>
> -s,--script <arg> script file to execute or '-' for
> System.in
>
> That is sure to work.
>
>
> My perl is quite rusty, but it may be as simple as:
>
> cat pdb1deh.ent | perl -ne 'BEGIN { print "load DATA \"mydata\"\n";} END {
> print "END \"mydata\"\n";}' | java -jar Jmol.jar -s -
>
Between the 'BEGIN {}' and 'END {}' section there is missing what to do
for each line of the file ('print $_;') but if it is added it works for me:
cat /scratch/pdb/pdb/pdb1deh.ent | perl -ne 'BEGIN { print "load DATA
\"mydata\"\n";} print $_; END { print "END \"mydata\"\n"; }' | java
-jar Jmol.jar -s -
Regards,
Rolf
--
Rolf Huehne
Postdoc
Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
Beutenbergstrasse 11
07745 Jena, Germany
Phone: +49 3641 65 6205
Fax: +49 3641 65 6210
E-Mail: [email protected]
Website: http://www.fli-leibniz.de
Scientific Director: Prof. Dr. K. Lenhard Rudolph
Head of Administration: Dr. Daniele Barthel
Chairman of Board of Trustees: Dennys Klein
VAT No: DE 153 925 464
Register of Associations: No. 230296, Amtsgericht Jena
Tax Number: 162/141/08228
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users