I am trying to find a way to continuously transfer files over a serial port.&nbsp; Thanks to Eric and Jonathon yesterday I learened how to send and receive files through a serial port.&nbsp; Many thanks.&nbsp; However, due to my inability to interpolate variables at the bash command line I decided to try:<br><br>#!/usr/bin/perl5 -w<br><br>use strict;<br>while(1) {<br><br>my ($yr, $mo, $day, $hr, $min, $sec) = (localtime)[5,4,3,2,1,0];<br>my $date = $sec . $min . $hr . $day . ($mo + 1) . ($yr + 1900);<br>system("cat /dev/ttyS0 &gt; $date");<br><br>}<br><br>This does not work well because none of the files are written until the program is killed and then they seem to be empty on the receiving end.&nbsp; Would it be better to make this a shell script or is perl script fixable?<br><br>Thanks for any help.<br><br>Richard<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