[Coco] OS/9 Command to gain keyboard control from script
Stephen H. Fischer
SFischer1 at Mindspring.com
Thu Apr 2 20:13:16 EDT 2015
Now that I have gotten more sleep and my headache is almost gone.
-----------------------------------
I follow the path of giving a kid a fish today is not as good as teaching him how to fish which will feed him for life. The former is the poor way people are being helped here IMHO most of the time.
I would like more details on what you are actually trying to do so I can really help. Via a PM discussion if you wish.
Consider it part of my research of what is wrong with the shellplus documentation. It has only been just recently that anyone has asked any questions. Thus only I see things being wrong because others just are not using the real power of shellplus.
When I was programming I fixed things that did not work well and developed methods that work with less effort each time they are needed.
I have traced parts of why I think things are being done the wrong way, it's Tandy and Microware's problem, they put nonsense in the OS-9 Level-II manual and everybody thinks that it is right and the bad knowledge goes round and round.
How did I know that it is bad, well I did things without reading the manual the fourth time and they worked. Later was when I realized how people were being told how to do some things was wrong.
SHF
----- Original Message -----
From: "Stephen H. Fischer" <SFischer1 at Mindspring.com>
To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
Sent: Thursday, April 02, 2015 10:43 AM
Subject: Re: [Coco] OS/9 Command to gain keyboard control from script
>
> Those will not work, a ShellSub will but then %%0 will be where the working directory is placed. But there are other problems that make me thing you are going down the wrong path.
>
> I suggest getting my VCC NitrOS-9 survival kit SHF888.zip
>
> http://home.mindspring.com/~sfischer1/
>
> and gaining experience with VDIR and my Archive program (Watch the screen when it starts).
>
> Then look at the source for Archive for the code to find where you are running it. It's not nice.
>
> I keep getting the feeling you are trying to solve a problem that does not exist.
>
> SHF
>
> ----- Original Message -----
> From: "Luis Antoniosi (CoCoDemus)" <retrocanada76 at gmail.com>
> To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
> Sent: Thursday, April 02, 2015 10:24 AM
> Subject: Re: [Coco] OS/9 Command to gain keyboard control from script
>
>
>> nor:
>>
>> PWD > %0
>>
>>
>> Luis Felipe Antoniosi
>>
>>
>>
>> On Thu, Apr 2, 2015 at 1:02 PM, Luis Antoniosi (CoCoDemus) <
>> retrocanada76 at gmail.com> wrote:
>>
>>> I tried :
>>>
>>> PWD > var.0
>>>
>>> with no avail
>>>
>>> Luis Felipe Antoniosi
>>>
>>>
>>>
>>> On Thu, Apr 2, 2015 at 12:52 PM, Gene Heskett <gheskett at wdtv.com> wrote:
>>>
>>>> On Thursday 02 April 2015 12:28:01 Stephen H. Fischer wrote:
>>>> > Hi,
>>>> >
>>>> > Well, starting a program and for it to determine where it is I do in
>>>> > my archive program and doing that is just not simple. Perhaps there is
>>>> > a more elegant way to do it.
>>>> >
>>>> > PWD and PXD we do have. But will they help?
>>>>
>>>> The output of those programs can be redirected to a shell var. That
>>>> would appear to be step one in such a script.
>>>>
>>>> > I need to think a while on this, it takes some time for my mine to
>>>> > work on things two (2) decades in the past.
>>>>
>>>> Yes, there is that too. :(
>>>>
>>>> > That was one of the first programs I wrote for OS-9 so I may have
>>>> > missed an easier way.
>>>> >
>>>> > I did program called "Filldisk" and used it to set up all my boot
>>>> > disks and others to have the CMDS directory in the same location
>>>> > allowing disks to be swapped and programs run without the usually
>>>> > needed CHX.
>>>> >
>>>> > VDIR loads the files / folders in the current folder into the second
>>>> > ShellPlus variable set.
>>>> >
>>>> > I am unsure if it will help.
>>>> >
>>>> > SHF
>>>> >
>>>> >
>>>> > ----- Original Message -----
>>>> > From: "Luis Antoniosi (CoCoDemus)" <retrocanada76 at gmail.com>
>>>> > To: "CoCoList for Color Computer Enthusiasts" <coco at maltedmedia.com>
>>>> > Sent: Thursday, April 02, 2015 6:44 AM
>>>> > Subject: Re: [Coco] OS/9 Command to gain keyboard control from script
>>>> >
>>>> > >I want to make a disk that will have a RUN script in its root that
>>>> > > will run the /dX/cmds/program, no matter if you put the disk in /d0,
>>>> > > /d1 or even just copied anywhere in the /dd hard drive.
>>>> > >
>>>> > > In other words, a script that will get the current path and execute
>>>> > > the relative executable in the ./CMDS/ folder. Is that possible ? I
>>>> > > don't want to force the user to type CHX /d0/cmds or have to type
>>>> > > the drive. I just want this:
>>>> > >
>>>> > > cd /d0
>>>> > > RUN
>>>> > >
>>>> > > that's it. Is it ppossible ? How do I copy the current path to a
>>>> > > variable ?
>>>> > >
>>>> > >
>>>> > >
>>>> > >
>>>> > > Plus
>>>> > > Luis Felipe Antoniosi
>>>>
>>>> Cheers, Gene Heskett
More information about the Coco
mailing list