Skip to content

Instantly share code, notes, and snippets.

@johngeorgewright
Created April 14, 2014 15:57
Show Gist options
  • Save johngeorgewright/10660725 to your computer and use it in GitHub Desktop.
Save johngeorgewright/10660725 to your computer and use it in GitHub Desktop.
Orient DB executions - assuming you've installed it in $HOME/Library/OrienTechnologies/OrientDB-1.7
function orient
{
if [ "$1" == 'db' ]
then
command="orientdb"
else
command="$1"
fi
sh $HOME/Library/OrienTechnologies/OrientDB-1.7/bin/$command.sh ${*:2}
}
@johngeorgewright
Copy link
Author

Now you can execute the newly installed OrientDB commands like so:

  • orient server
  • orient db start
  • orient db stop
  • orient console

...etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment