0

I want to call a Java class in Lisp with this command :

(sys:call-system-showing-output
    "cd C:/Users/iliass/Downloads/SBC-Projet/stanford-postagger
java -mx300m -classpath stanford-postagger.jar edu.stanford.nlp.tagger.maxent.MaxentTagger -model models/english-left3words-distsim.tagger -textFile tag_input.txt > tag_output.txt"
    :prefix "&&&")`

When I run the command cd .... from the command shell cmd.exe it works and the file tag_output.txt is generated, but when I call it from Lisp it doesn't work.

I'm using LispWorks on Microsoft Windows.

Rainer Joswig
  • 136,269
  • 10
  • 221
  • 346

1 Answers1

1

I do not think that putting a newline into your command will split it into two commands. According to the documentation, it should work with a semicolon, though.

Svante
  • 50,694
  • 11
  • 78
  • 122
  • 1
    For Unix shells. For Windows see here: http://stackoverflow.com/questions/8055371/how-to-run-two-commands-in-one-line-in-windows-cmd – Rainer Joswig May 23 '15 at 07:30