mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-07 03:35:38 -05:00
12 lines
166 B
Bash
Executable file
12 lines
166 B
Bash
Executable file
#!/bin/bash
|
|
|
|
CMD="$1"
|
|
FILE="$2"
|
|
LOG="$3"
|
|
|
|
/usr/bin/time -f "%e" $CMD $FILE > $3 2>&1
|
|
RET=$?
|
|
if [ $RET -ne 0 ];
|
|
then
|
|
echo "Error code $RET while solving $FILE"
|
|
fi
|