[
https://issues.apache.org/jira/browse/TINKERPOP-1604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15928500#comment-15928500
]
Xian Yi Teng edited comment on TINKERPOP-1604 at 3/16/17 5:42 PM:
------------------------------------------------------------------
One problem with {{:load}} is that it can't itself be used in a script.
was (Author: xytxytxyt):
One problem with `:load` is that it can't itself be used in a script.
> Let evaluate() handle : commands e.g. :remote connect
> -----------------------------------------------------
>
> Key: TINKERPOP-1604
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1604
> Project: TinkerPop
> Issue Type: Improvement
> Components: console
> Affects Versions: 3.2.3
> Reporter: Xian Yi Teng
>
> {code}
> ~/apache-tinkerpop-gremlin-console-3.2.3$ cat ../remote_connect.groovy
> :remote connect tinkerpop.server
> apache-tinkerpop-gremlin-console-3.2.3/conf/remote.yaml
> println 1+1
> ~/apache-tinkerpop-gremlin-console-3.2.3$ bin/gremlin.sh
> \,,,/
> (o o)
> -----oOOo-(3)-oOOo-----
> plugin activated: tinkerpop.server
> plugin activated: tinkerpop.utilities
> plugin activated: tinkerpop.tinkergraph
> gremlin> evaluate(new File('../remote_connect.groovy'))
> /home/automaton/remote_connect.groovy: 1: unexpected token: : @ line 1,
> column 1.
> :remote connect tinkerpop.server
> apache-tinkerpop-gremlin-console-3.2.3/conf/remote.yaml
> ^
> 1 error
> Type ':help' or ':h' for help.
> Display stack trace? [yN]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)