Category: Shell script

  • Send attachments from command line with mutt

    To send e-mails from command line with attachments using mutt. Set the from address with EMAIL= -s – Subject -a – attachment file recipient name -c – for CC -b – for BCC create a text file (eg: /tmp/testmessage) , with the body of the message. EMAIL=”foo@bar” mutt -s “Subject” -a test.doc foo1@bar -c foo2@bar…

  • Upgrade, Restore Drupal 7

    Shell script to upgrade and restore Drupal 7 website This script will take care of the necessary actions required for upgrading drupal to higher versions. USAGE Copy the script to your webserver. Edit the script and change the variables to match with your setup Give execute privilege to the owner of the script (chmod u+x…

  • Mysql backup script

    Ensuring data integrity and security is paramount. Regular backups play a crucial role in safeguarding your MySQL databases against unforeseen disasters

  • script to convert OpenSSH keys to Tectia SSH Format

    bash script for converting OpenSSH keys to Tectia format and vice versa.   Â