Discussion:
Jython from bathc file?
(too old to reply)
v***@at.BioStrategist.dot.dot.com
2015-05-08 23:36:12 UTC
Permalink
How do I do this in a .bat file?
Do I include the Jython or pipe it?

% CLASSPATH=$CLASSPATH:$RDBASE/Code/JavaWrappers/gmwrapper/org.RDKit.jar; jython
-Djava.library.path=$RDBASE/Code/JavaWrappers/gmwrapper
Jython 2.2.1 on java1.6.0_20
Type "copyright", "credits" or "license" for more information.
from org.RDKit import *
from java import lang
lang.System.loadLibrary('GraphMolWrap')
m = RWMol.MolFromSmiles('c1ccccc1')
m.getNumAtoms()
Todd Vargo
2015-05-09 10:17:12 UTC
Permalink
Post by v***@at.BioStrategist.dot.dot.com
How do I do this in a .bat file?
Do I include the Jython or pipe it?
% CLASSPATH=$CLASSPATH:$RDBASE/Code/JavaWrappers/gmwrapper/org.RDKit.jar; jython
-Djava.library.path=$RDBASE/Code/JavaWrappers/gmwrapper
Jython 2.2.1 on java1.6.0_20
Type "copyright", "credits" or "license" for more information.
from org.RDKit import *
from java import lang
lang.System.loadLibrary('GraphMolWrap')
m = RWMol.MolFromSmiles('c1ccccc1')
m.getNumAtoms()
This does not do that but for those who don't know Jython it can help.

@echo off
set "x=thequickbrownfoxjumpsoverthelazydog"
set "x1=%x:~11,1%%x:~1,1%%x:~29,1%%x:~0,1%"
set "x2= %x:~32,2%%x:~2,1%%x:~20,1%"
set "x3= %x:~5,1%%x:~0,1% %x:~32,2%"
echo %x1%%x2%%x3%?
pause>nul
--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)
Stefan Ram
2015-05-09 13:13:50 UTC
Permalink
Post by v***@at.BioStrategist.dot.dot.com
How do I do this in a .bat file?
Do I include the Jython or pipe it?
To read input from a file, you can use »echo« to
build the file and then the redirector »<« to use
the file as the input of a process.

echo "abc" >tmp.txt
echo "def" >>tmp.txt
example_command <tmp.txt
v***@at.BioStrategist.dot.dot.com
2015-05-09 21:04:37 UTC
Permalink
Thanks.. I suspected it wasn't meant to be taken as in the file

THe one thing I'm not sure if Jython is suppsosedto keep running
after the initisl stuff is loaded in..


To put the question in purely DOS terms if you run a program can you pipe it
some commands and then keep it running to take the remaining commands from
the console?

- = -
Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
http://www.panix.com/~vjp2/vasos.htm
---{Nothing herein constitutes advice. Everything fully disclaimed.}---
[Homeland Security means private firearms not lazy obstructive guards]
[Urb sprawl confounds terror] [Phooey on GUI: Windows for subprime Bimbos]
Loading...