--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/interact1 Mon Oct 12 16:56:59 2009 -0400
@@ -0,0 +1,35 @@
+#!/usr/bin/expect -f
+#======================================================================
+# I N T E R A C T 1
+# doc: Mon Mar 8 02:57:35 2004
+# dlm: Wed Nov 19 15:15:27 2008
+# (c) 2004 A.M. Thurnherr
+# uE-Info: 21 14 NIL 0 0 72 0 2 8 NIL ofnI
+#======================================================================
+
+# HISTORY:
+# Mar 8, 2004: - created
+# Nov 19, 2008: - added version
+
+
+log_user 0;
+
+regsub {dir1} [exec which dir1] {libBB.expect} path;
+source $path;
+source DEFAULTS.expect;
+
+print_version;
+
+send_user "Connecting to instrument...";
+spawn bbabble $tty0;
+
+set CTRLD \004
+interact {
+ $CTRLD {
+ set_color;
+ send_user "\nPutting instrument to sleep..."
+ send "CZ\r"; expect -timeout 2 "D";
+ send_user "\nDone\n"
+ exit;
+ }
+}