home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!newsflash.concordia.ca!clyde.concordia.ca!altitude!vandry
- From: vandry@CAM.ORG (Phillip Vandry)
- Newsgroups: comp.sys.apple2
- Subject: Re: IIgs files -> serial port
- Message-ID: <Bzy56t.yp@CAM.ORG>
- Date: 28 Dec 92 01:52:04 GMT
- References: <1992Dec24.205211.22392@uvm.edu>
- Distribution: na
- Organization: Champlain Regional College, St-Lambert QC CANADA
- Lines: 42
-
- pinder2@newton.emba.uvm.edu.uvm.edu (Justin Pinder) writes:
-
- >Can anyone tell me how to send a file to the Apple serial port in "raw"
- >format? (Using ProDOS or system utilities)..? Is there any way to
- >transmit files through the serial port at all?
-
- That sounds very do-able. All you would have to do is list the file with
- output redirected to the port. Under GNO/ME:
-
- cat file >.ttyx
-
- Under ORCA:
-
- type file >.devx (Use "devices" to find the .dev number for the)
- (port)
-
- If you don't use a shell, I think you're out of luck. It's just one of those things that;s really easy from a shell that's not without one...
-
- I suppose you could always try something along the lines of...
-
- 10 print chr$(4);"open file"
- 20 print chr$(4);"read file"
- 30 get a$
- 40 print chr$(4);"pr#x"
- 50 print a$;
- 60 goto 20
-
- Add an ONERR for the end of file (15 onerr goto 70 // 70 print chr$(4);"close")
- and it works (but very, very slowly)
- ______________________________________________________________________
- |~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
- | Phillip Vandry | Vandry@Cam.Org | Merry Christmas II you! |
- |________________|________________|____________________________________|
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Need a new line for my sig now that christmas is over... Hmmhm.hmh.
-
- >/ (__)( ) pinder2@hal.uvm.edu /
- >/ (-o)( ) The University of Vermont /
- >/ /------\/-() EMBA-CF, 252 Votey Building /
- >/ /| || Speaker for the Dead / IRC /
- >/ * ||----|| "Drugs have taught an entire generation of kids /
- >/ ^^ ^^ the metric system." /
-