piped stderr and stdout to stdout log file
This commit is contained in:
2
main.sh
2
main.sh
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# WIP: Do not use this at the moment
|
# WIP: Do not use this at the moment
|
||||||
if [ -e "main" ]; then
|
if [ -e "main" ]; then
|
||||||
./main &> /var/log/rawleyxyz/log
|
./main >> /var/log/rawleyxyz/log 2>&1
|
||||||
else
|
else
|
||||||
go build "main.go" && ./main &> /var/log/rawleyxyz/log
|
go build "main.go" && ./main &> /var/log/rawleyxyz/log
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user