--- archive/scripts/ripper-orig.php	2010-09-21 23:21:38.000000000 -0400
+++ archive/scripts/ripper.php	2010-09-26 22:56:31.000000000 -0400
@@ -46,6 +46,10 @@ $start_time = round_to_nearest_hour(time
 $end_time = $start_time + 3600;
 $length = ($end_time - time()) + (int) $settings['overlap_seconds'];
 
+// Execute any pre-rip commands specified in the inc file
+$prerip_command = ($settings['prerip_command']);
+exec("{$prerip_command}");
+
 // Download the stream
 $stream_url = $settings['stream_url'];
 $file_format = strtolower($settings['file_format']);
@@ -58,6 +62,10 @@ if (file_exists($cuefile)) {
   unlink($cuefile);
 }
 
+// Execute any post-rip commands specified in the inc file
+$postrip_command = ($settings['postrip_command']);
+exec("{$postrip_command}");
+
 exit(0);
 
 
