[Coco] Can a Basic09 program tell which screen or terminal it is running in ?
James Jones
jejones3141 at gmail.com
Thu Oct 17 21:42:43 EDT 2019
I think it might be easier to find your process id and use it as part of
the file names.
On Thu, Oct 17, 2019 at 8:02 PM <coco at jechar.ca> wrote:
>
> I was thinking of how a Basic09 program using
> temporary files in a multiprocess environment
> could be sure not to overwrite another process
> files.
>
> For example if Program A was puting data in
> /r0/out.temp and Program B was trying to do
> the same thing problems.
>
> One possible solution
> Suppose Process A is running in /term and process
> B is running in /w3 then if the process could
> determine which window it was running in it could
> add that info to the temporary file name,
> ie.
>
> Process A saves to /r0/out-term.temp and
> Process B saves to /r0/out-w3.temp
>
> No problem.
>
> So I was wondering how could Process A figure out
> that it was running in /term ect. ?
>
> Charlie
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>
More information about the Coco
mailing list