Uploading a file via serial port?

Alex Tweedly alex at tweedly.net
Wed Jan 19 20:14:07 EST 2005


Alex Tweedly wrote:

> Run a program on the solaris box which exits the "file copy" when it 
> sees a suitable pattern.

>
> If you don't have Rev (or Perl, or Python, or ....) it would be easy 
> to write an awk script to do this.

It has been too long since I used Unix .... you don't need awk or Perl 
for this;

cat << myeoftoken > somefile.txt
line 1
line 2
....
last line
myeoftoken

is all you need in most shells

(Of course, Frank's answer is better, if you are able to send 
numtochar(4)   :-)

-- Alex.



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.7.0 - Release Date: 17/01/2005



More information about the use-livecode mailing list