<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><briank@kappacs.com>Brain,<br><br>This worked like a charm.&nbsp; Thanks so much.&nbsp; Next time you're in Lincoln Park let me know, I owe you a beer.<br><br>Richard<br><br><br><br>&nbsp; Richard,<br><br>Here's a sample program that simulates typed input, waits for the user <br>to edit/enter a line, and prints what it gets.<br><br>#!/usr/bin/perl -w<br><br>use strict;<br><br>my $sti = "Hello, world";<br><br>sub TIOCSTI { 0x5412; }         # From e.g. /usr/include/asm/ioctls.h<br><br>foreach my $char (split(//, $sti))<br>{<br>         ioctl(STDIN, TIOCSTI, $char);<br>}<br>print "Input received: ", scalar(&lt;&gt;);<br><br># END<br><br>-- <br>Brian Katzung<br>Kappa Computer Solutions, LLC<br>www.kappacs.com 877.367.8837 x1<br><br>_______________________________________________<br>Chicago-talk mailing
 list<br>Chicago-talk@pm.org<br>http://mail.pm.org/mailman/listinfo/chicago-talk<br></briank@kappacs.com></blockquote><br><BR><BR>Your beliefs become your thoughts.  Your thoughts become your words.  Your words become your actions.  Your actions become your habits.  Your habits become your values.  Your values become your destiny.  -- Mahatma Gandhi