curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)
Problem When running curl you get this response: curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112) Solution curl -ssl3
Problem When running curl you get this response: curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112) Solution curl -ssl3
Here’s a quick note on how to download the contents of an http directory via command line. Using lftp to download an HTTP directory Forget wget, lftp is what you covet! What is lftp? LFTP is a sophisticated ftp/http client,…
Recently I tried passing a bash variable to perl command in bash script, it didn’t end well. Troy Engel from was nice enough to point out the issue: use sed instead of perl for what you need; it’s simpler, faster…
Great examples of how to use cURL from 1. Download a Single File The following command will get the content of the URL and display it in the STDOUT (i.e on your terminal). $ curl To store the output…
To delete all currently stored alerts and related data in the ossec database execute these commands in MySQL Editor: truncate table alert; truncate table data; Bash Script: #!/usr/local/bin/bash # #Stop ossec, remove old alerts, start ossec echo “stopping ossec” /var/ossec/bin/ossec-control…
to kill orphaned httpd processes create a script called killhttpd.sh with the following code #!/bin/bash for pid in `ps -C httpd|sed -e ‘s/^\ \+//g’ | grep httpd|awk ‘{print $1}’` do kill $pid done
Configure postfix with Gmail via Webmin This assumes the user has webmin installed and understands how to log in and use it. (Usually bring it up in a browser at https://localhost:10000 ) Make sure that postfix is installed. In Webmin this…
Someone recently passed me this link and it looks great! You can generate crontab scripts via a website. Here’s the link:
this script will reset a user’s password and email it to them. It accepts two parameters (username) (email address) Example Usage: . someuser [email protected] #!/usr/local/bin/bash if [ $# -ne 2 ]; then echo “Please provide a username and email address”;…
to move mysql on freebsd without using a dump file follow these steps: stop mysql copy /var/db/mysql to its new location chown -R mysql:mysql modify and add line mysql_dbdir=”“ modify and change mysql_dbdir=”/var/db/mysql” to the new location of…