#!/system/bin/sh

if [ $# -eq 0 ] || [ "$@" = "-help" ]; then
  echo usage: openfile [file]
  echo Opens the passed file
  exit 0
fi

#There is a bug with android's default netcat so use toybox's netcat.
#Android's netcat doesn't terminate when stdin closes.
echo -n open $@ | toybox nc localhost $QAMAR_PORT

