tagcloud/run.sh

11 wiersze
341 B
Bash

2013-03-11 15:56:43 +00:00
#!/bin/sh
2013-03-15 10:51:18 +00:00
#
# A shell script to use a tagcloud.jar on headless machines.
2013-03-15 11:34:06 +00:00
# Starts a Window Virtual Framebuffer for the run and kills it afterwards.
2013-03-15 10:51:18 +00:00
# Machines with a frame buffer can use the following command directly
# java -jar tagcloud.jar
#
2013-03-11 15:56:43 +00:00
APP_DIR=$(pwd)
Xvfb :1 -screen 0 1024x768x24 &
DISPLAY=:1 java -jar tagcloud.jar
killall -9 Xvfb