new scripts for managing exim email server, plus a handy thing that zips up directories.
authorChris Koeritz <fred@gruntose.com>
Mon, 30 Apr 2012 20:50:48 +0000 (16:50 -0400)
committerChris Koeritz <fred@gruntose.com>
Mon, 30 Apr 2012 20:50:48 +0000 (16:50 -0400)
scripts/email/exim_del_frozen.sh [new file with mode: 0644]
scripts/email/exim_list_frozen.sh [new file with mode: 0644]
scripts/email/exim_thaw.sh [new file with mode: 0644]
scripts/files/zip_directories.sh [new file with mode: 0644]

diff --git a/scripts/email/exim_del_frozen.sh b/scripts/email/exim_del_frozen.sh
new file mode 100644 (file)
index 0000000..af55cb3
--- /dev/null
@@ -0,0 +1,2 @@
+
+mailq | grep frozen | awk '{print $3}' | xargs exim -v -Mrm 
diff --git a/scripts/email/exim_list_frozen.sh b/scripts/email/exim_list_frozen.sh
new file mode 100644 (file)
index 0000000..1082549
--- /dev/null
@@ -0,0 +1,3 @@
+
+mailq | grep frozen | awk '{print $3}' 
+
diff --git a/scripts/email/exim_thaw.sh b/scripts/email/exim_thaw.sh
new file mode 100644 (file)
index 0000000..c43282b
--- /dev/null
@@ -0,0 +1,2 @@
+
+mailq | grep frozen | awk '{print $3}' | xargs exim -v -M 
diff --git a/scripts/files/zip_directories.sh b/scripts/files/zip_directories.sh
new file mode 100644 (file)
index 0000000..1b5e5d0
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# goes through the current directory (currently) and zips up any directories
+# into an archive with the same name as the directory plus a time stamp.
+
+source $FEISTY_MEOW_SCRIPTS/core/functions.sh
+
+#hmmm: take a dir to go to for this.
+dir=.
+
+for i in $(find $dir -mindepth 1 -maxdepth 1 -type d) ; do zip -rm "${i}_$(date_stringer)" "$i"; done