Giter Club home page Giter Club logo

bash-type-144_147-asdic's Introduction

Type144/147 ASDIC

Abstract

日時フォーマット付きで ping を投げ続け、結果をテキストファイルに出力するスニペットです。

Result's sample

ファイルに出力される結果は以下のようなフォーマットになります (ただし言語やタイムゾーン指定に依る)。

YYYY年mm月dd日 hh時ii分ss秒 PING 192.0.2.1 (192.0.2.1) 56(84) bytes of data.
YYYY年mm月dd日 hh時ii分ss秒 64 bytes from 192.0.2.1: icmp_seq=1 ttl=56 time=8.40 ms
YYYY年mm月dd日 hh時ii分ss秒 64 bytes from 192.0.2.1: icmp_seq=2 ttl=56 time=8.20 ms
YYYY年mm月dd日 hh時ii分ss秒 64 bytes from 192.0.2.1: icmp_seq=3 ttl=56 time=72.2 ms
YYYY年mm月dd日 hh時ii分ss秒 64 bytes from 192.0.2.1: icmp_seq=4 ttl=56 time=36.6 ms

Usage

  1. config.php.sample をコピーして config.php を作成してください
  2. 適宜設定を変更してください
    • address: ping を送信する宛先
      • 手動で Ctrl + C で強制終了するか、端末の再起動などでプロセスが終了しない限り ping を投げ続けるので、第三者の迷惑にならない宛先を指定してください
    • resultOutput: ファイル出力先パス・ファイル名
      • path: ファイル出力先のフォルダ名。デフォルトは result
      • baseFilename: ファイル出力先のベースファイル名。デフォルトは result で、末尾にハイフン + 年月日8ケタ + .log が付く。そのため、ファイル名は result-yyyyMMdd.log となる。
  3. main.phpphp /PATH/TO/TYPE-144_147-ASDIC/main.php のように PHP 上で実行
  4. 確認が完了した任意のタイミングで、コマンドプロンプトを Ctrl + C や kill 等で終了させる

bash-type-144_147-asdic's People

Contributors

arm-band avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.