Advertisement
Guest User

Untitled

a guest
Apr 24th, 2015
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. Called manually this works:
  2. # neo4j-shell -file /tmp/fixture.txt
  3.  
  4. Called from a state the -file /tmp/fixture.txt part is ignored.
  5.  
  6. # tests.sls
  7. test-setup-fixture:
  8. cmd.run:
  9. - name: neo4j-shell -file /tmp/fixture.txt
  10.  
  11. # salt-call state.sls project.tests saltenv=vendor
  12.  
  13. ID: test-setup-fixture
  14. Function: cmd.run
  15. Name: neo4j-shell -file /tmp/fixture.txt
  16. Result: False
  17. Comment: Command "neo4j-shell -file /tmp/fixture.txt" run
  18. Started: 13:17:42.928671
  19. Duration: 589.294 ms
  20. Changes:
  21. ----------
  22. pid:
  23. 2892
  24. retcode:
  25. 1
  26. stderr:
  27. ERROR (-v for expanded information):
  28. Connection refused
  29. stdout:
  30. -host Domain name or IP of host to connect to (default: localhost)
  31. -port Port of host to connect to (default: 1337)
  32. -name RMI name, i.e. rmi://<host>:<port>/<name> (default: shell)
  33. -pid Process ID to connect to
  34. -c Command line to execute. After executing it the shell exits
  35. -file File containing commands to execute, or '-' to read from stdin. After executing it the shell exits
  36. -readonly Connect in readonly mode (only for connecting with -path)
  37. -path Points to a neo4j db path so that a local server can be started there
  38. -config Points to a config file when starting a local server
  39.  
  40. Example arguments for remote:
  41. -port 1337
  42. -host 192.168.1.234 -port 1337 -name shell
  43. -host localhost -readonly
  44. ...or no arguments for default values
  45. Example arguments for local:
  46. -path /path/to/db
  47. -path /path/to/db -config /path/to/neo4j.config
  48. -path /path/to/db -readonly
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement