#!/bin/sh # start.sh : starts an edition in the background with a scratch config; pid in .pid T=$HOME/.local/share/sm-dev/tmp/review-web if [ "$1" = W ]; then P="$HOME/Desktop/Server Monitor(web-window)"; PATH="$HOME/.local/share/sm-dev/fakewin:$PATH"; else P="$HOME/Desktop/Server Monitor(web-linux)"; fi XDG_CONFIG_HOME="$2" APPDATA="$2" PORT="$3" nohup node "$P/server.js" > "$2.out" 2> "$2.err" & echo $! > "$2.pid"