summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-02-06 17:23:22 +0100
committertomsmeding <tom.smeding@gmail.com>2017-02-06 17:23:22 +0100
commit8826da1f23ca03117757b11162e3fbaf87cab30c (patch)
treedcf877df859c5620664bb6dd5145805995ea6a53
parente32d7fd4c1f3fdc298453d3182d5eec49736f1f3 (diff)
Add startup script using bash
Since fish 2.5.0, nohup'ing doesn't work anymore (thanks). Using bash works however.
-rwxr-xr-xstartup.sh7
1 files changed, 7 insertions, 0 deletions
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