Skip to content

Instantly share code, notes, and snippets.

@ear7h
Created October 4, 2019 20:22
Show Gist options
  • Save ear7h/077b2213b4e073125b06a2a85b988255 to your computer and use it in GitHub Desktop.
Save ear7h/077b2213b4e073125b06a2a85b988255 to your computer and use it in GitHub Desktop.
tegola remote control
#!/bin/sh
PORT=8888
echo "$@" | nc localhost $PORT
sleep 1
nc localhost $PORT
#!/bin/sh
PORT=8888
CONFIG=/Users/julio/lib/tegola/tegola-osm/simple.toml
while [ 1 ];do
cmd=`nc -l localhost $PORT | head -n 1`
echo $cmd
if [ $cmd == "exit" ]; then
exit
fi
tegola --config=$CONFIG "$cmd" 2>&1 | nc -l localhost $PORT
done
@ear7h
Copy link
Author

ear7h commented Oct 4, 2019

  • change the config variable
  • use ./tegola_client.sh as if it were the regular tegola command, minus the config option

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