How To Pipe To A Ruby Command Line Application
You need to read from STDIN rather than parse command line arguments.
while $stdin.gets
puts $_
end
Written by Sean Behan on 10/17/2013
Backup and Rotate MySQL Databases Simple Bash Script
Make a directory ( it can anywhere ) called baks/mysql
mkdir -p /baks/mysql
Create a file (it can be anywhere) called /root/mysql_backups.sh and put this script in it
#!/bin/bash
# modify the following to suit your environment
export DB...
Written by Sean Behan on 05/16/2017