mirror of
https://github.com/RobotechLille/cdf2018-principal
synced 2024-11-25 09:36:04 +01:00
10 lines
172 B
Bash
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
|