13 lines
223 B
Bash
Executable File
13 lines
223 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "$1" = "--onetime" ]; then
|
|
onetime="yes"
|
|
shift
|
|
fi
|
|
echo "$@" > /tmp/$$.sh
|
|
if [ -n "$onetime" ]; then
|
|
echo '[ -e "$job" ] && rm "$job"' >> /tmp/$$.sh
|
|
fi
|
|
mv /tmp/$$.sh /initqueue/
|
|
>> /initqueue/work
|