I have used WinSCP for many years now. Its a great product, but sometimes, it is rather slow when copying/moving large files. Instead of using WinSCP, users can initiate a file/directory transfer via the CLI. The command syntax is: Downloading a Directory: scp -r user@ssh.example.com:/path/to/remote/source /path/to/local/destination Uploading a Directory: scp -r /path/to/local/source user@ssh.example.com:/path/to/remote/destination In the example below, I am copying …
KeepAlive Script
I was looking for a script to monitor and insure that Tomcat was active. I came across this script by Mahesh at https://serverfault.com/questions/608776/how-to-monitor-tomcat-application-and-restart-if-not-running. It can probably be modified to monitor any process you’d like. #!/bin/bash TOMCAT_HOME=/opt/tomcat PUBLIC_IP=`wget http://ipecho.net/plain -O – -q ; echo` EMAIL_BODY=”Hi Admin,\n\n$PUBLIC_IP Tomcat is down at $(date -d “+330 minutes” +”%Y-%m-%d %T”) IST, Please take necessary action.\n\n\nDo …