Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
RETRY_COUNT=5 # リトライ回数
COUNT=0 # カウントアップ用変数
cmd="$@" # 実行コマンド(引数)
echo -e "run command: $cmd\n"
until $cmd || [ $COUNT -eq $RETRY_COUNT ]; do
sleep $(( COUNT++ ))
echo "retory $COUNT"
@BlackEllis
BlackEllis / log_margin.pl
Last active October 11, 2017 11:15
Apache log and SSL log margin
#! /usr/bin/perl
use warnings;
use Data::Dumper;
use DateTime;
use DateTime::Format::Strptime;
package main;
##