Displaying 6 results from an estimated 6 matches for "mktmp".
Did you mean:
mktemp
2015 Nov 30
2
restarting samba using a cron job on Debian
...ba fixes the issue for an unpredictable time. Sometimes
hours, sometimes many weeks. So I wrote a script to restart samba in
this case:
#!/bin/bash
#
# Check if samba replication broke down and restart samba in this case
#
SAMBA_TOOL=/usr/bin/samba-tool
SED=/bin/sed
MAIL=/usr/bin/mail
RM=/bin/rm
MKTMP=/bin/mktemp
FAIL=`$SAMBA_TOOL drs showrepl | $SED -n "/^\s*[1-9][0-9]* consecutive
failure(s)\.$/p"`
if [[ -n "$FAIL" ]]; then
TMP=$($MKTMP)
$SAMBA_TOOL drs showrepl > "$TMP"
echo "Restart ..." >> "$TMP"
/etc/init.d/samba res...
2015 Nov 30
2
restarting samba using a cron job on Debian
...a script to restart samba in
>> this case:
>>
>> #!/bin/bash
>> #
>> # Check if samba replication broke down and restart samba in this case
>> #
>> SAMBA_TOOL=/usr/bin/samba-tool
>> SED=/bin/sed
>> MAIL=/usr/bin/mail
>> RM=/bin/rm
>> MKTMP=/bin/mktemp
>>
>> FAIL=`$SAMBA_TOOL drs showrepl | $SED -n "/^\s*[1-9][0-9]* consecutive
>> failure(s)\.$/p"`
>>
>> if [[ -n "$FAIL" ]]; then
>> TMP=$($MKTMP)
>> $SAMBA_TOOL drs showrepl > "$TMP"
>> echo "Re...
2015 Nov 30
0
restarting samba using a cron job on Debian
...t; hours, sometimes many weeks. So I wrote a script to restart samba in
> this case:
>
> #!/bin/bash
> #
> # Check if samba replication broke down and restart samba in this case
> #
> SAMBA_TOOL=/usr/bin/samba-tool
> SED=/bin/sed
> MAIL=/usr/bin/mail
> RM=/bin/rm
> MKTMP=/bin/mktemp
>
> FAIL=`$SAMBA_TOOL drs showrepl | $SED -n "/^\s*[1-9][0-9]* consecutive
> failure(s)\.$/p"`
>
> if [[ -n "$FAIL" ]]; then
> TMP=$($MKTMP)
> $SAMBA_TOOL drs showrepl > "$TMP"
> echo "Restart ..." >> "...
2015 Nov 30
0
restarting samba using a cron job on Debian
...is case:
>>>
>>> #!/bin/bash
>>> #
>>> # Check if samba replication broke down and restart samba in this case
>>> #
>>> SAMBA_TOOL=/usr/bin/samba-tool
>>> SED=/bin/sed
>>> MAIL=/usr/bin/mail
>>> RM=/bin/rm
>>> MKTMP=/bin/mktemp
>>>
>>> FAIL=`$SAMBA_TOOL drs showrepl | $SED -n "/^\s*[1-9][0-9]* consecutive
>>> failure(s)\.$/p"`
>>>
>>> if [[ -n "$FAIL" ]]; then
>>> TMP=$($MKTMP)
>>> $SAMBA_TOOL drs showrepl > "$TMP&qu...
2015 Nov 30
3
restarting samba using a cron job on Debian
...t; #!/bin/bash
>>>> #
>>>> # Check if samba replication broke down and restart samba in this case
>>>> #
>>>> SAMBA_TOOL=/usr/bin/samba-tool
>>>> SED=/bin/sed
>>>> MAIL=/usr/bin/mail
>>>> RM=/bin/rm
>>>> MKTMP=/bin/mktemp
>>>>
>>>> FAIL=`$SAMBA_TOOL drs showrepl | $SED -n "/^\s*[1-9][0-9]* consecutive
>>>> failure(s)\.$/p"`
>>>>
>>>> if [[ -n "$FAIL" ]]; then
>>>> TMP=$($MKTMP)
>>>> $SAMBA_TOOL drs...
2008 Oct 12
2
[LLVMdev] Genlibdeps.pl, CMake and MSYS
Kenneth Boyd <zaimoni at zaimoni.com> writes:
>>> * I am seeing desynchronization between the configure-generated
>>> Makefiles and the CMakeFile.txt files. [e.g., llc; makefile doesn't
>>> have asmprinter, CMakeFile.txt does]. That much I should be able to
>>> construct a patch for "blind", if no-one gets to it first.
>>>