2015-05-17 06:59:49 +12:00
|
|
|
#!/bin/zsh
|
|
|
|
# waifu2x daemon script
|
2015-06-23 06:17:41 +12:00
|
|
|
gpu=1
|
|
|
|
port=8812
|
|
|
|
if [ $# -eq 2 ]; then
|
|
|
|
gpu=$1
|
|
|
|
port=$2
|
|
|
|
fi
|
2015-05-17 06:59:49 +12:00
|
|
|
source /home/ubuntu/.zshrc
|
2015-06-23 06:17:41 +12:00
|
|
|
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
|