Skip to content

Instantly share code, notes, and snippets.

@nekoruri nekoruri/ssl-cert-check.sh
Last active May 20, 2016

Embed
What would you like to do?
#!/bin/sh
SERVER=$1
PORT=$2
TIMEOUT=25
PATH=/bin:/usr/bin; export PATH
basedir=`dirname $0`
$basedir/timeout $TIMEOUT $basedir/ssl-cert-check -s $SERVER -p $PORT -n | sed 's/ */ /g' | cut -f6 -d" " | sed 's/^.*=//g'
@nekoruri

This comment has been minimized.

Copy link
Owner Author

nekoruri commented Apr 4, 2013

ディレクトリが変わっても動くようにdirname $0しました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.