openmolecules.org

 
Home » DataWarrior » Functionality » Opening SDF file with Datawarrior from command line
Re: Opening SDF file with Datawarrior from command line [message #411 is a reply to message #409] Tue, 30 October 2018 22:23 Go to previous messageGo to previous message
thomas is currently offline  thomas
Messages: 650
Registered: June 2014
Senior Member
This you can do. I just tried on Linux:
/opt/datawarrior/datawarrior some_path/some_file.sdf

On Windows I didn't try, but it should work the same way.
On the Mac it is different. The command line argument is evidently not passed to the jar file. As a workaround you may launch the jar the classical way: java -cp datawarrior.jar:lib1.jar:lib2.jar...libn.jar pathAndFile.sdf (in the jar list you include all jar files from the /Applications/DataWarrior.App/DataWarrior/Contents/Java folder)

The same way you may pass a macro file instead of an sd-file. The macro may contain tasks to load an sd-file, to do some other processing and to finally end DataWarrior itself. This way you could add some more stuff in a bash script.

Thomas
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Datawarrior Protonates the Oxygen in a Phosphorous Oxygen Double Bond.
Next Topic: network file export (cytoscape)
Goto Forum:
  


Current Time: Tue Apr 23 22:24:32 CEST 2024

Total time taken to generate the page: 0.03228 seconds