**************************************************************** * Long directions to extract a file in Executioner format * **************************************************************** (I'm assuming that you can edit a file before you download it. If this isn't the case, do all the editing after you download it and translate the new lines to carriage returns - Kermit can do this translation for you). First lets determine if you have an Executioner file. The first line after all the headers (mail addresses, text, etc...) will be: CALL -151 If you have found a CALL -151 then you probably have an Executioner format file. Delete all the lines above the CALL -151 so that it is the first line of the file. Now edit the other end of the file. You should find something like a line string of numbers (and letters) followed by a blank line which is followed by a BSAVE command and then a E00G command. Make sure that the blank line contains no characters (other than the newline to get the blank line). Delete any lines that may follow the E00G command. These are typically signature lines. Make sure that there are no spaces before the text of each line (1,$<< in vi). Save the file to be downloaded. Note: If you edited the file on your Apple, then you must make sure that you write a text file back to the disk (A save command from AppleWorks isn't good enough, you'll have to print the file to disk from AppleWorks). Now translate the new lines to carriage returns. On Unix systems the command is: tr '\012' '\015' < inputfile > outputfile Other possible methods to do the translation is to download using the Kermit program (it can translate new lines to carriage returns for you) or a program on your Apple. I believe that the Davex shell has a TR command that can do the translation for you. I also believe that there are several other programs that can do the translation for you. List is a file browser that can print to disk. TextDragon works on the IIGS. Use whatever method you can, just get the new lines translated into carriage returns. Download the edited/translated file - I'm not going into any detail here. Just get the file downloaded. You may have already completed this step, if you had to edit/translate the file on your Apple. Boot ProDOS and get into Basic, then set the prefix so the edited/translated file is available. Now type 'EXEC filename', where filename is the edited/translated text file. You should see a ']' prompt followed by lots of '*' prompts. A while later, you will see couple more ']' prompts then everything should stop with a ']' prompt. You should see a new file in your directory. If the filetype is wrong (it may have to be a particular type, for BinSCII it must be type SYS), then you can try the EXEC command again - which will probably work the second time. An alternative (if EXEC doesn't do the trick) is to change the file type with file type changer. An example will probably help, so lets try to walk through one. The following is a 'edited' file that I just got from the APPLE2-L LISTSERVer (actually file APPLE2-L.87-00031) - my editing was simply to make its size manageable for this example. Note: The '****'s are to mark the start/end of the file and are not actually contained in the file itself. Here is the file: ************************************************************************* Date: Sat, 15 Aug 87 23:14 EST Reply-To: Apple II List Sender: Apple II List From: SEWALL@UCONNVM Subject: Chameleon 2 of 2 files cham.exe (EXEC under ProDOS)-----------Cut Here-------------------- CALL-151 E00:38 A5 FF D0 32 D8 20 8E FD AD 30 BF 8D 6A 0E 20 00 BF C7 6D 0E 0D 80 02 E18:D0 1D 20 00 BF C5 69 0E B0 15 AD 81 02 29 0F AA E8 8E 80 02 A9 2F 8D 81 E30:02 20 00 BF C6 6D 0E A2 08 B0 0E 20 00 BF C3 70 0E B0 06 A2 26 20 53 0E E48:AA 20 53 0E 4C D0 03 20 ED FD E8 BD 59 0E D0 F7 60 A0 F3 E1 F6 E5 E4 8D E60:00 C5 F2 F2 EF F2 87 8D 00 02 00 81 02 01 80 02 07 7E 0E 01 FF 00 20 00 E78:00 00 78 AE 00 00 0B C3 C8 C1 CD AE D3 D9 D3 D4 C5 CD 00 F00:D8 A0 00 84 FF 88 84 E0 A9 0F 85 E1 20 67 FD A0 00 A2 FF 20 2F 0F E6 E0 F18:D0 02 E6 E1 0A 0A 0A 0A 91 E0 20 2F 0F 11 E0 91 E0 45 FF 85 FF 90 E4 E8 F30:BD 00 02 09 80 C9 A0 F0 F6 49 B0 C9 0A 90 17 69 88 09 20 C9 FA B0 0C 68 F48:68 E0 04 B0 BF 98 91 E0 4C 69 FF 18 29 0F 60 F00G A90885A420732090242039FB2058FCA200BD9220F00620EDFDE8D0F5200CFDA9 008DF2038DF3038DF4036CFCFFE6A4A5A4C96F90CFA9008DFCBFA9018DFDBFA0 28B94D209900028810F74C0002A9028508A9088509A9C08506A9208507A000B1 . . . A0B7D1D78D8DDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDF DFDFDFDFDFDFDFDFDFDFDFDFDFDF8D002C10C02C00C010FB2C10C060CC BSAVE CHAM.SYSTEM,A$1000,L$4C3C E00G ************************************************************************* Since I found the CALL -151 command, I know its an Executioner format file. Now I do all my editing on it and the result looks like the following: ************************************************************************* CALL-151 E00:38 A5 FF D0 32 D8 20 8E FD AD 30 BF 8D 6A 0E 20 00 BF C7 6D 0E 0D 80 02 E18:D0 1D 20 00 BF C5 69 0E B0 15 AD 81 02 29 0F AA E8 8E 80 02 A9 2F 8D 81 E30:02 20 00 BF C6 6D 0E A2 08 B0 0E 20 00 BF C3 70 0E B0 06 A2 26 20 53 0E E48:AA 20 53 0E 4C D0 03 20 ED FD E8 BD 59 0E D0 F7 60 A0 F3 E1 F6 E5 E4 8D E60:00 C5 F2 F2 EF F2 87 8D 00 02 00 81 02 01 80 02 07 7E 0E 01 FF 00 20 00 E78:00 00 78 AE 00 00 0B C3 C8 C1 CD AE D3 D9 D3 D4 C5 CD 00 F00:D8 A0 00 84 FF 88 84 E0 A9 0F 85 E1 20 67 FD A0 00 A2 FF 20 2F 0F E6 E0 F18:D0 02 E6 E1 0A 0A 0A 0A 91 E0 20 2F 0F 11 E0 91 E0 45 FF 85 FF 90 E4 E8 F30:BD 00 02 09 80 C9 A0 F0 F6 49 B0 C9 0A 90 17 69 88 09 20 C9 FA B0 0C 68 F48:68 E0 04 B0 BF 98 91 E0 4C 69 FF 18 29 0F 60 F00G A90885A420732090242039FB2058FCA200BD9220F00620EDFDE8D0F5200CFDA9 008DF2038DF3038DF4036CFCFFE6A4A5A4C96F90CFA9008DFCBFA9018DFDBFA0 28B94D209900028810F74C0002A9028508A9088509A9C08506A9208507A000B1 . . . A0B7D1D78D8DDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDFDF DFDFDFDFDFDFDFDFDFDFDFDFDFDF8D002C10C02C00C010FB2C10C060CC BSAVE CHAM.SYSTEM,A$1000,L$4C3C E00G ************************************************************************* I execute the 'tr' command on my Unix system and download the resulting file. Once I get it to my IIGS, then (from Basic) I type: EXEC FILE Lots of '*'s later I find CHAM.SYSTEM on my disk. (BEEEP) This concludes the test of the emergency Executioner translation example. --- Special thanks to Dave Kopper (dave@mystie.webo.dg.com) for writing this. If you still have questions or problems, e-mail me. Dan DeMaggio (dmag@caen.engin.umich.edu)