Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
public:gemini_toaster [2021/02/21 19:33] Nicopublic:gemini_toaster [2021/02/21 20:44] – [Basic monitoring] shorter monitoring script Nico
Line 103: Line 103:
 <code bash> <code bash>
 #!/bin/sh #!/bin/sh
-TLS_CLIENT="/usr/local/bin/gnutls-cli -p 1965" 
  
-errorOutput=$(echo -n  "gemini://$1/\r\n"${TLS_CLIENT} $1 2>&1 > /dev/null)+errorOutput=$(echo -n  "gemini://$1/\r\n"/usr/local/bin/gnutls-cli -p 1965 $1 2>&1 > /dev/null)
 errorCode=$? errorCode=$?
 +
 if [ $errorCode -gt 0 ] if [ $errorCode -gt 0 ]
 then then