|
@@ -37,6 +37,11 @@ if [ -z "${NAME}" ] ; then
|
|
exit 1
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+if [ $# -lt 1 ] ; then
|
|
|
|
+ echo "A command is required." >&2
|
|
|
|
+ exit 1
|
|
|
|
+fi
|
|
|
|
+
|
|
RUN_SCRIPT=$(mktemp)
|
|
RUN_SCRIPT=$(mktemp)
|
|
|
|
|
|
cat <<EOF > "${RUN_SCRIPT}"
|
|
cat <<EOF > "${RUN_SCRIPT}"
|
|
@@ -99,8 +104,8 @@ cat <<EOF >> "${RUN_SCRIPT}"
|
|
rm "\${OUTPUT_FILE}"
|
|
rm "\${OUTPUT_FILE}"
|
|
rm "\${TIME_FILE}"
|
|
rm "\${TIME_FILE}"
|
|
rm "\${FN}"
|
|
rm "\${FN}"
|
|
-
|
|
|
|
EOF
|
|
EOF
|
|
|
|
|
|
|
|
+chmod +x ${RUN_SCRIPT}
|
|
screen -d -S ${NAME} -m ${RUN_SCRIPT}
|
|
screen -d -S ${NAME} -m ${RUN_SCRIPT}
|
|
|
|
|