From 8826da1f23ca03117757b11162e3fbaf87cab30c Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Mon, 6 Feb 2017 17:23:22 +0100 Subject: Add startup script using bash Since fish 2.5.0, nohup'ing doesn't work anymore (thanks). Using bash works however. --- startup.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 startup.sh diff --git a/startup.sh b/startup.sh new file mode 100755 index 0000000..641ab01 --- /dev/null +++ b/startup.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +echo "Enter username \n password \n" +IFS="" read username +IFS="" read -s password +printf "%s\n%s\n" "$username" "$password" | nohup ./client.js >/dev/null 2>&1 & +echo $! +disown -- cgit v1.2.3