1
0
Fork 0
mirror of https://github.com/RobotechLille/cdf2018-principal synced 2024-11-25 09:36:04 +01:00
cdf2018-principal/chef/run.sh
2018-02-07 17:57:01 +01:00

10 lines
172 B
Bash

#!/bin/sh
EXEC=bin/premier
LOGFILE="${2:=run.log}"
# Logging
"$EXEC" 2>&1 | while read line; do
echo "$(cat /proc/uptime | cut -d ' ' -f 1) $line" >> "$LOGFILE"
done