1
0
Fork 0
mirror of synced 2024-05-03 12:32:26 +12:00
waifu2x/appendix/run-web.sh
2015-06-22 18:17:41 +00:00

12 lines
281 B
Bash
Executable file

#!/bin/zsh
# waifu2x daemon script
gpu=1
port=8812
if [ $# -eq 2 ]; then
gpu=$1
port=$2
fi
source /home/ubuntu/.zshrc
echo stdbuf -o 0 th web.lua -gpu $gpu -port $port >> ./waifu2x_${port}.log 2>&1
stdbuf -o 0 th web.lua -gpu $gpu -port $port >> ./waifu2x_${port}.log 2>&1