Skip to content

Instantly share code, notes, and snippets.

@nekoruri
Last active May 20, 2016 10:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nekoruri/5308903 to your computer and use it in GitHub Desktop.
Save nekoruri/5308903 to your computer and use it in GitHub Desktop.
#!/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
Copy link
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