Last active
May 20, 2016 10:19
-
-
Save nekoruri/5308903 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ディレクトリが変わっても動くようにdirname $0しました。