Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!seismo!mcnc!ece-csc!ncrcae!ncr-sd!sdcsvax!ucsdhub!jack!man!crash!billk From: billk@crash.UUCP Newsgroups: comp.sys.amiga Subject: Did they RUN me? (I'll try again) Message-ID: <820@crash.CTS.COM> Date: Fri, 20-Feb-87 01:19:32 EST Article-I.D.: crash.820 Posted: Fri Feb 20 01:19:32 1987 Date-Received: Sat, 21-Feb-87 06:25:29 EST Sender: root@crash.CTS.COM Organization: People-Net [pnet01] Lines: 54 Sorry about my last message on this subject -- confusing things were happening all around me while I was writing it and I had to leave suddenly. Other than the fact that it probably made no sense, it was a great message... ;-) Here's what I was trying to ask: Take a look at the following two examples of someone executing a program from the CLI: Example 1: 1> DiskEd ... ... ... ... Example 2: 1> RUN DiskEd [CLI 2] 1> ... ... ... ... Now, Is there any nice way for "DiskEd" to determine whether the user has RUN it (example 2) or they have just executed it (example 1)? What I'm really interested in is EXACTLY what "DiskEd" must do to obtain this information. Since I'm not programming in 'C' it would help me more to have an example like, "Oh, you just have to look in structure So_and_so which is at the beginning of all CLI tasks and get the pointer to StdIn...etc." rather than an example like, "Hey, no problem -- just call good 'ol DreelSprail() to get the job done! ...'works every time..." because I would have no idea at all as to what "DreelSprail()" might be doing... Thanks! While I'm at it, I might as well ask how, once "DiskEd" has found out whether it has been RUN or not... How can "DiskEd" find out the following?: Suppose it hasn't been RUN. Then how can DiskEd find the pointer (what is it, a DOS file lock?) to the CLI window it has been RUN from, so it can do text into it? Remember, I'm not programming in 'C' :) Thanks! I will be most grateful if someone can help. I don't like having this all so one-way, though. I wish I could help a little instead of always asking questions -- SO, if anyone has any questions about the Amiga Devices, Fire Away! I'd be quite surprised if I couldn't help with *those*, having written complete interfaces to almost all of them. (They get easier the more you do, for the most part) Thanks again! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NAME: Bill Kelly UUCP: {akgua, hplabs!hp-sdd, sdcsvax}!crash!pnet01!billk ARPA: crash!pnet01!billk@nosc INET: billk@pnet01.CTS.COM USPS: 2507 Caminito La Paz "I hate operating systems!" La Jolla, CA 92037 Guy M. Kelly FONE: (619) 454-1307 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~