Bash

Creating a Wrapper Bash Script to Replace the Drush Launcher

I run a shared hosting web server for a small number of clients. This web server is home to multiple content management systems including several different instances of Drupal.

To help myself and my users maintain their Drupal sites, every user on the server should be able to access Drush and use it on their own Drupal sites. Ideally this would be accomplished by simply typing drush in the command line ensuring it is easily accessible to both myself and my clients (though, mostly just for me).

A "Live View" of Linux Files

The tail Linux command is a very useful command for viewing logs. It is designed to show the end of a file on a screen. It can however be set to automatically set to always display the end of a file. Want to monitor your Debian web server's SSH logins? run this simple command:

tail -f /var/log/auth.log

In particular, I've found it very useful while attempting to troubleshoot problems with an exim4 mail server on a VestaCP installation by watching inbound and outbound email traffic.

Subscribe to Bash