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